Home

Issue: 1789

Setting different value to env variable in dev, test and production environment.

[issue link]

In nuxt.config.js I have the following env variable:

  env: {
    API_URL: 'http://localhost:3000/api/'
  }

I want to set this API_URL variable different value when I’m in production, test or dev environment.
How can I do this?

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