Report this

What is the reason for this report?

How to setup a staging environment

Posted on May 20, 2022

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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.