Next.js Discord

Discord Forum

Is there a way to use vercel-cli to push local project.json setting to server?

Unanswered
Dwarf Crocodile posted this in #help-forum
Open in Discord
Dwarf CrocodileOP
Hello,

Is there a method to push the project.json file from my local machine to the server using vercel-cli?

For context,
I created a project using vercel project add. Next, I built a project using vercel build which generated a project.json file that contains project settings in the settings section. I am attempting to change the install command and push this file to the server so I can have vercel install the dependencies via this command instead of the default method (yarn).

I know I can use vercel --prebuilt but I would like to use vercel --prod . Unfortunately, in this case, vercel uses yarn to install by default which will break the deployment.

I noticed that they removed the option to add a custom install command when deploying a project. I hope they consider bringing it back.

3 Replies

Dwarf CrocodileOP
Dwarf CrocodileOP
Hello

Just pinging this again!
Dwarf CrocodileOP
😦