mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(nuxt): omit rendering payload prefetch when noScripts
(#27972)
This commit is contained in:
parent
3c635034a1
commit
8e2c2263fc
@ -386,7 +386,7 @@ export default defineRenderHandler(async (event): Promise<Partial<RenderResponse
|
|||||||
// Setup head
|
// Setup head
|
||||||
const { styles, scripts } = getRequestDependencies(ssrContext, renderer.rendererContext)
|
const { styles, scripts } = getRequestDependencies(ssrContext, renderer.rendererContext)
|
||||||
// 1.Extracted payload preloading
|
// 1.Extracted payload preloading
|
||||||
if (_PAYLOAD_EXTRACTION && !isRenderingIsland) {
|
if (_PAYLOAD_EXTRACTION && !NO_SCRIPTS && !isRenderingIsland) {
|
||||||
head.push({
|
head.push({
|
||||||
link: [
|
link: [
|
||||||
process.env.NUXT_JSON_PAYLOADS
|
process.env.NUXT_JSON_PAYLOADS
|
||||||
|
Loading…
Reference in New Issue
Block a user