Move Prisma config to project root as .mjs for Prisma 7
Some checks failed
Build and Push Docker Image / lint-and-typecheck (push) Failing after 1m9s
Build and Push Docker Image / build (push) Has been skipped

- Move prisma.config.ts to prisma.config.mjs at project root
- Use dynamic dotenv import (works in Docker without dotenv)
- Add dotenv to devDependencies for local development
- Install dotenv globally in Docker for migration support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-17 15:31:23 +01:00
parent 053463b7e1
commit 8157531fba
4 changed files with 28 additions and 15 deletions

View File

@@ -1,12 +0,0 @@
import 'dotenv/config'
import { defineConfig, env } from 'prisma/config'
export default defineConfig({
schema: 'prisma/schema.prisma',
migrations: {
path: 'prisma/migrations',
},
datasource: {
url: env('DATABASE_URL'),
},
})