-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inlining css styles in the head tag via getCssLinks() and custom document does not work anymore in v8.1 #7641
Comments
Hey @badpenguin, from your response it's hard to debug what is wrong. Could you please provide minimal reproduction? |
Ok i figured it out! but didn't solved it. Instead when i run in production mode it works correctly since they bot At the moment i've mitigated the problem changing the code to use LINK (with URL) instead of STYLE in dev mode if the file does not exists on disk. The code i use for inlining css in the head via custom _document can be found here: |
Source code to test this behaviour with 8.1 has been published here https://github.com/badpenguin/nextjs-static-generator-boilerplate/tree/v8.1.0 |
Sounds like you're doing something unexpected / non-standard. |
It there a "standard" way to not generate all that pre-load scripts that slows down the initial page load, then? |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
After upgrading, and cleaning any temporary data i got a strange issue.
The build + export procedure is working and the generated web site is perfect.
However launching the dev server will start but will not work: when i try to browse to localhost:3000 i get 404 no matter which page's url i try to access.
What can i do to generate some usefull debugging for this issue?
The text was updated successfully, but these errors were encountered: