Skip to content

Commit

Permalink
fix(build): Don't check postgres unless necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
ABCxFF committed May 22, 2024
1 parent b10d158 commit 8fa01ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/build/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export async function build(project: Project, opts: BuildOpts) {
opts.signal?.throwIfAborted();

// Required for `migrateDev` and `migrateDeploy`
await ensurePostgresRunning(project);
if (opts.migrate?.forceDeploy) {
await ensurePostgresRunning(project);
}

const buildState = await createBuildState(project, opts.signal);

Expand Down

0 comments on commit 8fa01ae

Please sign in to comment.