Home

Issue: 2940

How to conditionally set variables in PROD and DEV?

[issue link]

Hi there. What’s the best way to have one url for prod and another for dev with Nuxt? I searched Docs but can’t find anythng.

For example, I have this axios.post('http://localhost:7777/form', payload)
Hot to change url when I run npm run build or npm run generate?

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