diff --git a/apps/react-router-example/prisma.config.ts b/apps/react-router-example/prisma.config.ts index eaa03c09..a579ffbb 100644 --- a/apps/react-router-example/prisma.config.ts +++ b/apps/react-router-example/prisma.config.ts @@ -9,6 +9,8 @@ export default defineConfig({ path: "prisma/migrations", }, datasource: { - url: env("DATABASE_URL"), + // Provide a default value for CI/CD environments where the database URL is not set + // This allows prisma generate to run without connecting to the database + url: env("DATABASE_URL") ?? "postgresql://postgres:postgres@localhost:5432/effectify", }, })