process.env.URL null in nuxt project onvercel

Viewed 968
2 Answers

It's work for me in Nuxtjs, just set your name of environment variable starting with NUXT_ENV_

For example

process.env.NUXT_ENV_Token

Vercel will be automatically injected into the process environment.

Related