Strapi Admin showing strapi is in production despite using development mode

System Information
  • Strapi Version: v4.12.0
  • Operating System: Ubuntu 22.04
  • Database: Postgresql
  • Node Version: v18.17.0
  • NPM Version: 9.6.7
  • Yarn Version:

I have started strapi using ‘npm start develop’ and it is continuing to tell me that I cannot edit content types because strapi is in production mode. I have also added `NODE_ENV=development’ to my .env file. I have also set the system environment variable for this as well. Nothing seems to be working. In the console when I start strapi, it is showing it being in development mode as well.


1 Like

Finally fixed the issue by running. ‘npx strapi develop’ apparently the command ‘npm run develop’ wasn’t doing something that it should have been.

You should report this as bug, I think.

I did:

1 Like

“Finally fixed the issue by running. ‘npx strapi develop’ apparently the command ‘npm run develop’ wasn’t doing something that it should have been.”

I have tried this it does’nt work for me.

As said setting NODE_ENV = development works run command

NODE_ENV=development npx strapi develop

This works for me.

@DMehaffy I guess it is the intended behavior, isn’t it?

1 Like