Strapi Admin still in production mode

System Information
  • Strapi Version: 4.20.0
  • Operating System:
  • Database: mysql
  • Node Version: 20.9
  • NPM Version: 9.6.4
  • Yarn Version:

Hi,
I’m currently deploying strapi in azure using Azure devops.
The NODE_ENV is development and i can see it in the logs :slight_smile:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Database           β”‚ mysql                                            β”‚
β”‚ Edition            β”‚ Community                                        β”‚
β”‚ Version            β”‚ 4.20.0 (node v20.9.0)                            β”‚
β”‚ Process PID        β”‚ 113                                              β”‚
β”‚ Environment        β”‚ development                                      β”‚
β”‚ Launched in        β”‚ 23145 ms                                         β”‚
β”‚ Time               β”‚ Mon Feb 19 2024 10:17:00 GMT+0000 (Coordinated … β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

But i’m still unable to edit my content type :

Information:

Strapi is in production mode, editing content types is disabled. Please switch to development mode by starting your server with strapi develop.

I have not found the right command to start strapi in a Node azure app service : every thing else than β€˜npm start’ fails.

I have already done some researches on the forum and found this one [Strapi Admin showing strapi is in production despite using development mode] but it did not helped: using npx strapi develop as command to start failed with the message :

requireStack: [ '/home/site/wwwroot/node_modules/.bin/strapi' ]
2/19/2024, 9:51:00.487 AM
Error code: 'MODULE_NOT_FOUND',
Error at Module.load (node:internal/modules/cjs/loader:1091:32)
Error at Object.<anonymous> (/home/site/wwwroot/node_modules/.bin/strapi:2:1)
Error at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
Error at Module._compile (node:internal/modules/cjs/loader:1241:14)
Error at require (node:internal/modules/helpers:130:18)
Error Error: Cannot find module '../dist/cli'

Could someone successfully using strapi in a node app service help me to correctly configure mine ?
Thanks in advance.

Facing the same issue, have you found any solution