Skip to content

Commit 6e9fbfb

Browse files
committed
fix(db): provide fallback dummy DB URL to prevent build evaluation crash
1 parent f60fed9 commit 6e9fbfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/db/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { neon } from "@neondatabase/serverless";
22
import { drizzle } from "drizzle-orm/neon-http";
33
import * as schema from "./schema";
44

5-
const sql = neon(process.env.DATABASE_URL!);
5+
const sql = neon(process.env.DATABASE_URL || "postgresql://dummy:dummy@localhost/dummy");
66

77
export const db = drizzle(sql, { schema });
88

0 commit comments

Comments
 (0)