New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Disable Control Panel in Production

Lloyd Montgomery January 31, 2021 by Lloyd Montgomery

Hello, is there a way to disable the control panel via environment variables?

I found an old post that described DISABLE_CP=true as an environment variable, but this doesn't appear to have any effect on my site and I cannot find any documentation on it.

Cheers! Lloyd

Answered by Duncan McClean!
>>>>>>> Answered <<<<<<<
3 Replies