Prisma with nuxt build blocking issues
Whenever I run any command like dev or build, the Prisma/Nuxt module prompts me with a question.
This is blocking my build, and because of that, I can't even deploy it on Vercel.
Is there a way to skip this prompt or handle it properly?

2 Replies
You opted for speed from this bot. Let's conjure up an answer right now!
I understand your frustration with the Prisma/Nuxt module prompts blocking your build process, especially when deploying to Vercel. This is a known issue that several users have encountered.
Solutions to Skip Prompts
You can configure the
@prisma/nuxt
module to skip prompts by adding the following to your nuxt.config.ts
:
The skipPrompts
option will skip all prompts, while autoSetupPrisma
will automate the Prisma setup without prompts, which is particularly useful for CI/CD pipelines like Vercel deployments Using the Nuxt Prisma Module.
Alternative Solutions
If you're still experiencing issues, some users have found success by:
1. Removing the @prisma/nuxt
module entirely and managing Prisma manually in their Nuxt project. One user reported: "I removed @prisma/nuxt
and now it's running through" Github Issue.
2. For CI environments specifically, you can set environment variables like CI
or CI_NAME
which Prisma detects to skip interactive prompts.
3. If you're encountering a survey prompt specifically (which was introduced in Prisma 6.4.0), setting CI environment variables can help bypass this as well Github Issue.
Vercel-Specific Considerations
When deploying to Vercel, you might also need to:
1. Ensure Prisma Client is generated during the build process by adding prisma generate
to your build command or in a postinstall
script in your package.json
Vercel build dependency caching workaround.
2. Check if you're using the correct deployment preset. One user found that changing from 'vercel-edge' to 'vercel'
solved their issue with Prisma in a Nuxt project Github Discussion.
I hope one of these solutions resolves your build blocking issue!
š¤ Alright, thanks for letting us know that there's still some help needed. A team member will reply to you shortly.
In the meantime, please let us know any additional info, questions, or which parts of the answer may need clarification.It seems that the issue is resolved now. Let us know in case you run into any other issues š