Hey, I would like to have two different apps (nuxt apps) one for staging (testing things) and one for production. I set those up under Apps and everything is running so far. But how can I distinguish between production and staging environment?
For production I use following run command NODE_ENV=production yarn start
But if I do this for staging somehow it doesn’t work!
By now I have set an Environment Variable NODE_ENV=staging and use the run command: yarn start
But I got told I should not set NODE_ENV as env vars at all!
So what can I do? What is the correct approach here!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
After going over the Community, I found a similar question here:
It’s not exactly the same but it can be used as examples or suggestions on how to continue.
Additionally, according to this Docs:
https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/
You can use the vars.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.