Static GitHub Issues

[353] How to set enviroment while running nuxt?

prev: Initialize a script widget out of the Vue root
next: Extract the manifest file to make vendor.js be cached longer

Hi, when I am using nuxt, I would like to set different enviroment in order to use different test host.

For example, I have 3 host: http://test1.me, http://test2.me, http://test3.me, and I would like to set these host by passing arguments when I run npm run dev, such as npm run dev -- -m=test1, but it doesn't work.

Are there any way to solve my questrion? Thanks a lot!

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