mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(nuxt): remove modulepreload for spa fallback routes with ssr:true
(#7553)
This commit is contained in:
parent
950cb60bd5
commit
4b4558c2be
@ -194,7 +194,7 @@ export default defineRenderHandler(async (event) => {
|
|||||||
htmlAttrs: normalizeChunks([renderedMeta.htmlAttrs]),
|
htmlAttrs: normalizeChunks([renderedMeta.htmlAttrs]),
|
||||||
head: normalizeChunks([
|
head: normalizeChunks([
|
||||||
renderedMeta.headTags,
|
renderedMeta.headTags,
|
||||||
!process.env.NUXT_NO_SCRIPTS && process.env.prerender ? `<link rel="modulepreload" href="${payloadURL}">` : null,
|
(process.env.prerender && !ssrContext.noSSR) ? `<link rel="modulepreload" href="${payloadURL}">` : null,
|
||||||
_rendered.renderResourceHints(),
|
_rendered.renderResourceHints(),
|
||||||
_rendered.renderStyles(),
|
_rendered.renderStyles(),
|
||||||
inlinedStyles,
|
inlinedStyles,
|
||||||
|
Loading…
Reference in New Issue
Block a user