Home

Issue: 353

How to set enviroment while running nuxt?

[issue link]

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!

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