[Styled Components] How can we leverage the new SSG methods to export static style sheets at build time? #11073
Unanswered
heyitsarpit
asked this question in
Help
Replies: 1 comment 2 replies
-
It's only ran when the render occurs, meaning that with Basically it just works in a backwards compatible way. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current way to do server side rendering in Next js requires creating a _document.jsx file in the pages directory, it uses Next's getInitialProps method which runs at each request.
Can we use the new functionality in 9.3 to create our at build time.
This would allow the app to render for the first time without any flickers(the app initially loads without any styles and CSS is injected later).
Beta Was this translation helpful? Give feedback.
All reactions