The vercel CLI deploy command has the option to pass build environment variables, because the build is happening at Vercel. We are trying to do the build on our CI/CD server and using the build command to accomplish this and then use the prebuilt flag for the deploy.
The vercel CLI build command doesn't have an option to pass environment variables to use during the build. In theory, this should only affect NEXT_PUBLIC_ variables, since the others are accessed at runtime. Is there a recommended way to pass environment variables to the build command?
This would be used to override an environment variable for a Preview deploy.