We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ce57b commit aef7b0cCopy full SHA for aef7b0c
lib/db/migrate.ts
@@ -9,7 +9,8 @@ config({
9
10
const runMigrate = async () => {
11
if (!process.env.POSTGRES_URL) {
12
- throw new Error("POSTGRES_URL is not defined");
+ console.log("⏭️ POSTGRES_URL not defined, skipping migrations");
13
+ process.exit(0);
14
}
15
16
const connection = postgres(process.env.POSTGRES_URL, { max: 1 });
0 commit comments