-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Meta tags are not defined in the first 1024 bytes of the HTML #1566
Comments
I think this is related to meta ordering in framework, WDYT @danielroe @pi0? |
I think likely, yes. cc: @harlan-zw |
This logic was fixed for this issue with However, rendering tags with Nuxt would need to render root level meta in the SPA |
I think we can track issue of meta tags when |
Environment
Windows_NT
v16.17.0
3.0.0-rc.11
0.5.4
npm@8.19.2
vite
-
-
-
Reproduction
Using the following package.json and nuxt.config.ts, specifically the
ssr: false
and nitropreset: 'service-worker'
settings.Build the project using the
nuxi build
command and then serve it usingnpx serve .\output\public
Describe the bug
Running the Google Chrome Lighthouse tool fails the Best Practices step saying:
A character encoding declaration is required. It can be done with a
<meta>
tag in the first 1024 bytes of the HTML or in the Content-Type HTTP response header.It seems that the site is being generated with the
<meta>
tags half way down the head section, rather than at the top.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: