diff --git a/apps/react-router-example/prisma.config.ts b/apps/react-router-example/prisma.config.ts index a579ffbb..056120fe 100644 --- a/apps/react-router-example/prisma.config.ts +++ b/apps/react-router-example/prisma.config.ts @@ -1,7 +1,7 @@ // This file was generated by Prisma and assumes you have installed the following: // npm install --save-dev prisma dotenv import "dotenv/config" -import { defineConfig, env } from "prisma/config" +import { defineConfig } from "prisma/config" export default defineConfig({ schema: "prisma/schema.prisma", @@ -11,6 +11,6 @@ export default defineConfig({ datasource: { // 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", + url: process.env.DATABASE_URL ?? "postgresql://postgres:postgres@localhost:5432/effectify", }, })