From cb703b3f93da3f70c095312181b2924310b8d72c Mon Sep 17 00:00:00 2001 From: Syibbran Mulaesyi Date: Wed, 5 Nov 2025 16:50:37 +0700 Subject: [PATCH] fix(prisma-config): missing import dotenv --- src/templates/db.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/templates/db.ts b/src/templates/db.ts index 66678f01..03039d33 100644 --- a/src/templates/db.ts +++ b/src/templates/db.ts @@ -20,6 +20,7 @@ export const driverNames: Record = { export function getDBIndex({ orm, driver, packageManager }: Preferences) { if (orm === "Prisma") return [ + `import "dotenv/config""`, `import { PrismaClient } from "@prisma/client"`, "", "export const prisma = new PrismaClient()",