Next.js Discord

Discord Forum

Skip build when deploying on vercel?

Answered
Cesky Fousek posted this in #help-forum
Open in Discord
Cesky FousekOP
I have an app that gets pre-built before deployment. I would like to skip the build step entirely when deploying to vercel.

I have tried the "Ignored build step" setting in the Vercel dashboard, and my vercel.json looks like this:

{
  "buildCommand": "echo 'skipping build with vercel.json'"
}


It still tries to do yarn install when I run the vercel command to deploy. What else should I try?
Answered by not-milo.tsx
The build command is run separately from the install command. If you want to skip both, you'll have to overwrite both and add this to your vercel.json:
{
  "installCommand": "echo 'skipping leg day is never a good idea'"
}
View full answer

3 Replies

Answer
Cesky FousekOP
Milo - thank you

🦾
🦿
No problem ✌🏻