Can't change NodeJS Environment 'Usage' from Production to Staging

======== TEMPLATE BUG FORM ========

Wappler Version : 3.6.1
Operating System :Mac
Server Model: NodeJS
Database Type: MySql8
Hosting Type: Docker AWS

Expected behavior

What do you think should happen?

I want to be able to change the usage in project settings > targets from production to staging.

I expect to be able to do that, redeploy after saving and then use $_ENV.NODE_ENV == ‘staging’ as a if/else condition.

Actual behavior

What actually happens?

After deploying the staging environment still believes it’s set as ‘production’ so the if/then query fails.

Community Page
Last updated: