lomavuokraus/prisma.config.ts
Tero Halla-aho 0bb709d9c5
Some checks failed
CI / checks (push) Has been cancelled
chore: fix audit alerts and formatting
2026-02-04 12:43:03 +02:00

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,
},
});