Static GitHub Issues

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

prev: Please release a new version, fix memory leak
next: Feature Request: Static Export

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!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1762">#c1762</a>)</em></sub></div>