import { defineConfig } from "@prisma/config"; import { config } from "dotenv"; import { resolve } from "path"; // Load environment variables from the repo root .env file so that // DATABASE_URL (and other secrets) are available to the Prisma CLI. config({ path: resolve(__dirname, "../../.env") }); export default defineConfig({ datasource: { // SECURITY: never hardcode database credentials. DATABASE_URL must // come from the environment (`.env` / deployment secrets). If it is // missing, the Prisma CLI fails with a clear error instead of // silently connecting to an embedded fallback. url: process.env.DATABASE_URL, }, studio: { port: 5555, }, });