Skip to content

Enabling production mode breaks backofficeΒ #19043

@nestalk

Description

@nestalk

Which Umbraco version are you using?

15.3.1

Bug summary

If I attempt to run an umbraco site in production mode as per the docs the backend stops working. Published pages will work but I cannot access the backend.

Specifics

Created a repo with the minimal reproduction https://github.com/nestalk/modetest.

If it is built in Release configuration and run with "ASPNETCORE_ENVIRONMENT": "Production" the backend will not load. But if in appsettings.Production.json you remove or change Umbraco:CMS:Runtime:Mode to another value the backend will load again.

The requests for the css and js files return 404 not found,

Image

Steps to reproduce

run https://github.com/nestalk/modetest in Release build and in "ASPNETCORE_ENVIRONMENT": "Production"

Expected result / actual result

  • Expected: backoffice loads
  • Actual: blank page

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions