nicoalbanese / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
2.37k stars 107 forks source link

Generating Prisma missing in build that is read by Vercel #155

Closed navidre closed 3 months ago

navidre commented 3 months ago

Config File { "hasSrc": false, "packages": [ "shadcn-ui", "prisma", "clerk", "resend", "stripe" ], "preferredPackageManager": "pnpm", "t3": false, "alias": "@", "analytics": true, "rootPath": "", "componentLib": "shadcn-ui", "orm": "prisma", "driver": "pg", "auth": "clerk" }

Describe the bug The package.json settings for dev and build should consider generating prisma first

Instead of "scripts": { "dev": "next dev", "build": "next build", }

It should be: "scripts": { "dev": "prisma generate && next dev", "build": "prisma generate && next build", }

Otherwise, the build part causes error in deployment, e.g. in Vercel

nicoalbanese commented 3 months ago

Good shout - sorted!