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 →

Cannot access control panel when site is deployed with Netlify

Connor Leech October 9, 2020 by Connor Leech

Hi there, I deployed a Statamic site to Netlify using the Starter's Creek code base. The template site deployed well and looks good but I am getting a 404 error when trying to access the /cp dashboard in production: https://epiclaravel.dev/cp. It works locally on http://epiclaravel.test/cp/dashboard

I've got the recommended environment variables set on the Netlify side:

I haven't changed anything on the config/cp.php side:

    | Control Panel
    | Whether the Control Panel should be enabled, and through what route.

    'enabled' => env('CP_ENABLED', true),

    'route' => env('CP_ROUTE', 'cp'),

Any ideas how I can access the control panel dashboard in production? Or is best practice with Statamic to do everything locally, commit with Git and not access the control panel in production?

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
2 Replies