From 785b7a3f6ecea9e37d2385f996d4ffcced217fbc Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 20 Oct 2023 11:49:26 +0100 Subject: [PATCH] fix(nuxt): close payload object (#23817) --- packages/nuxt/src/core/runtime/nitro/renderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/runtime/nitro/renderer.ts b/packages/nuxt/src/core/runtime/nitro/renderer.ts index 6c58b90e64..bce5e7eb1e 100644 --- a/packages/nuxt/src/core/runtime/nitro/renderer.ts +++ b/packages/nuxt/src/core/runtime/nitro/renderer.ts @@ -548,7 +548,7 @@ function renderPayloadScript (opts: { ssrContext: NuxtSSRContext, data?: any, sr return [ { type: 'module', - innerHTML: `import p from "${opts.src}";window.__NUXT__={...p,...(${devalue(opts.data)})` + innerHTML: `import p from "${opts.src}";window.__NUXT__={...p,...(${devalue(opts.data)})}` } ] }