22 lines
622 B
TypeScript
22 lines
622 B
TypeScript
// This file was generated by Prisma and assumes you have installed the following:
|
|
// npm install --save-dev prisma dotenv
|
|
import "dotenv/config";
|
|
import { defineConfig } from "prisma/config";
|
|
import { loadLocalSecrets } from "./lib/loadSecrets";
|
|
|
|
loadLocalSecrets();
|
|
|
|
const databaseUrl =
|
|
process.env.DATABASE_URL ||
|
|
"postgresql://localhost:5432/lomavuokraus?sslmode=disable";
|
|
|
|
export default defineConfig({
|
|
schema: "prisma/schema.prisma",
|
|
migrations: {
|
|
path: "prisma/migrations",
|
|
},
|
|
datasource: {
|
|
// Fallback to a local dev URL so builds/linting can run without secrets
|
|
url: databaseUrl,
|
|
},
|
|
});
|