Feb 20, 2021
Hi,
If the variable can be public, like the api endpoint, you can create an .env.production file in your root directory to add production environment variables. https://nextjs.org/docs/basic-features/environment-variables#default-environment-variables
I haven't tried it but you can also use vercel CLI to set env variable from your terminal https://vercel.com/docs/cli#commands/overview/unique-options/env