NextJS compiles styles in script tag in production
Answered
Oleg posted this in #help-forum
OlegOP
Cant resolve problem with production build. Styles from layout appears as script and doesnt applies at all.
On dev mode from localhost all work fine!
First image - from localhost
Second - from production build
On dev mode from localhost all work fine!
First image - from localhost
Second - from production build
Answered by Oleg
Fixed by set “revalidate†variables in all layouts and pages.
But it’s confusing 🫤
But it’s confusing 🫤