Home

Issue: 1983

Can I build locally and pass environment variables only when starting server ?

[issue link]

Hi,

I’m wondering if I could build a Nuxt project locally,
and on server I pass in environment variables when starting the server ?

I know that I can define environment variables in nuxt.config.js, but they have to be passed in during compilation.
For speed and stability’s sake, I prefer to build locally.
So can I pass in environment variables when starting the server like HOST & PORT.

Thanks!

This question is available on Nuxt.js community (#c1762)