Next.js Discord

Discord Forum

Build version stylesheet not removed like dev

Unanswered
necm1 posted this in #help-forum
Open in Discord
Hi!

I'm facing following issue that in dev mode the styles in a route change is being removed like it should but in the build version, it still being present and breaks the whole style, because it's getting overwritten and stacked up.

Is this a normal behaviour? How can I avoid this or remove at least the head like it does in dev mode?

0 Replies