How to set different build commands on different environments?
Unanswered
Toyger posted this in #help-forum
ToygerOP
I'm using gulp to copy certain public configs between 2 environments. A development and production enviroment, it will switch out the config based on what gulp command is given i.e.
However in vercel deployment settings I can only configure one build command. I want for example that for production I run
pnpm build-dev will run gulp build-dev && next build , `pnpm build will run gulp build && next build . However in vercel deployment settings I can only configure one build command. I want for example that for production I run
pnpm build and for all other environments pnpm build-dev. How do I achieve this and is it possible?