From 9a3ef4efc3076c93993932bf3fe73c136ddf128f Mon Sep 17 00:00:00 2001 From: Beldor Date: Thu, 18 Jun 2026 13:12:03 -0300 Subject: [PATCH] fix: simplify prisma.config.ts and exclude it from Next.js tsconfig Co-Authored-By: Claude Sonnet 4.6 --- prisma.config.ts | 5 ----- tsconfig.json | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/prisma.config.ts b/prisma.config.ts index 6ff2102..f96141d 100644 --- a/prisma.config.ts +++ b/prisma.config.ts @@ -1,10 +1,5 @@ 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({ schema: "prisma/schema.prisma", migrations: { diff --git a/tsconfig.json b/tsconfig.json index 7b28589..ed61083 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,5 +22,5 @@ } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "prisma.config.ts", "prisma/seed.ts"] }