Static GitHub Issues

[267] Unable to access process.env from browser

prev: sourcemaps for css/sass
next: Dev command not working in linked folder inside docker container

Hi, I am trying to set baseURL as env variable by defining it in nuxt.config.js

 env: {
    baseURL: 'myserver.com'
}

But when I console.log(process.env) in the browser. It shows an empty object.

Any reason why this is not working?

<!--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/c227">#c227</a>)</em></sub></div>