From 5f59f301341dba359dd328eb39c03480704a4b00 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 9 Dec 2024 21:32:39 +0000 Subject: [PATCH] fix(nuxt): remove whitespace around spa loading template --- packages/nuxt/src/core/nitro.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/nitro.ts b/packages/nuxt/src/core/nitro.ts index 81a065bba2..66bd666bf4 100644 --- a/packages/nuxt/src/core/nitro.ts +++ b/packages/nuxt/src/core/nitro.ts @@ -625,7 +625,7 @@ async function spaLoadingTemplate (nuxt: Nuxt) { try { if (existsSync(spaLoadingTemplate)) { - return readFileSync(spaLoadingTemplate, 'utf-8') + return readFileSync(spaLoadingTemplate, 'utf-8').trim() } } catch { // fall through if we have issues reading the file