fix: simplify prisma.config.ts and exclude it from Next.js tsconfig
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,5 @@
|
|||||||
import { defineConfig } from "prisma/config";
|
import { defineConfig } from "prisma/config";
|
||||||
|
|
||||||
// dotenv only needed for local dev (docker-compose passes env vars directly)
|
|
||||||
if (process.env.NODE_ENV !== "production") {
|
|
||||||
await import("dotenv/config").catch(() => {});
|
|
||||||
}
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
schema: "prisma/schema.prisma",
|
schema: "prisma/schema.prisma",
|
||||||
migrations: {
|
migrations: {
|
||||||
|
|||||||
+1
-1
@@ -22,5 +22,5 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules", "prisma.config.ts", "prisma/seed.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user