Add prisma config

This commit is contained in:
MartinBraquet
2025-08-05 16:26:57 +02:00
parent 7e4116b1a2
commit 46fa721a6c
2 changed files with 17 additions and 3 deletions

View File

@@ -70,8 +70,5 @@
"tailwindcss": "^3.4.1",
"tsx": "^4.19.2",
"typescript": "^5"
},
"prisma": {
"seed": "npx tsx prisma/seed.ts"
}
}

17
prisma.config.ts Normal file
View File

@@ -0,0 +1,17 @@
import path from "node:path";
import 'dotenv/config'; // <-- This loads your .env file before Prisma runs
import type {PrismaConfig} from "prisma";
export default {
schema: path.join("prisma", "schema.prisma"),
migrations: {
path: path.join("prisma", "migrations"),
},
// views: {
// path: path.join("prisma", "views"),
// },
// typedSql: {
// path: path.join("prisma", "queries"),
// }
} satisfies PrismaConfig;