Skip build when deploying on vercel?
Answered
Cesky Fousek posted this in #help-forum
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
It still tries to do
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'"
}3 Replies
@Cesky Fousek 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?
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'"
}Answer
Cesky FousekOP
Milo - thank you
🦾
🦿
🦾
🦿
No problem ✌ðŸ»