CSS collapsing after backend Python changes in ERPNext

Hi,
Every time I make changes to the backend Python code in my ERPNext app, the CSS in the frontend collapses — the layout breaks, and styles disappear or don’t load correctly. This happens consistently, even without touching any frontend or print format code.
I’ve tried clearing the browser cache and running bench clear-cache, but the issue still appears temporarily after each code change. Has anyone else experienced this? Is there a proper way to avoid CSS breaking after backend updates?

1 Like

Are you running your instance in docker?

I have had the css breaking issue when bench build did not go well, for whatever reason… you could check if bench build completes without errors…
also after its broken, how do you fix it?
How are you running this setu

Yes I’m Using Docker

“Containers are immutable, you’ve to replace them with new ones.”: