From e15ede4aae9bc319823f18c777f6172dd1d4a294 Mon Sep 17 00:00:00 2001 From: NandkishorJadoun <183695114+NandkishorJadoun@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:57:13 +0530 Subject: [PATCH 1/6] feat: add a reload button --- server/plugins/fallback-ui.ts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 server/plugins/fallback-ui.ts diff --git a/server/plugins/fallback-ui.ts b/server/plugins/fallback-ui.ts new file mode 100644 index 000000000..420306570 --- /dev/null +++ b/server/plugins/fallback-ui.ts @@ -0,0 +1,33 @@ +export default defineNitroPlugin(nitroApp => { + nitroApp.hooks.hook('render:html', (html, { event }) => { + if (event.path === '/spa.prerender-fallback.html') { + html.head.push(` + + `) + + html.bodyAppend.push(` + + `) + } + }) +}) From 3bdea584e958d5cb2ae312973111a627e08c0aea Mon Sep 17 00:00:00 2001 From: NandkishorJadoun <183695114+NandkishorJadoun@users.noreply.github.com> Date: Thu, 12 Feb 2026 17:26:19 +0530 Subject: [PATCH 2/6] fix: update conditional statement --- server/plugins/fallback-ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/fallback-ui.ts b/server/plugins/fallback-ui.ts index 420306570..a91a8dae4 100644 --- a/server/plugins/fallback-ui.ts +++ b/server/plugins/fallback-ui.ts @@ -1,6 +1,6 @@ export default defineNitroPlugin(nitroApp => { nitroApp.hooks.hook('render:html', (html, { event }) => { - if (event.path === '/spa.prerender-fallback.html') { + if (event.path === '/spa.prerender-fallback.html' || event.path === '/200.html') { html.head.push(` - `) - - html.bodyAppend.push(` - - `) + if (event.path.includes('/200.html')) { + html.head.push('') } }) }) From 7b1d06331378aba8d59d2c6fec107da1b99ae1da Mon Sep 17 00:00:00 2001 From: NandkishorJadoun <183695114+NandkishorJadoun@users.noreply.github.com> Date: Thu, 12 Feb 2026 19:12:26 +0530 Subject: [PATCH 4/6] chore: reduce reload time to 1 second --- server/plugins/fallback-ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/fallback-ui.ts b/server/plugins/fallback-ui.ts index fa38eec37..4eac9cf5b 100644 --- a/server/plugins/fallback-ui.ts +++ b/server/plugins/fallback-ui.ts @@ -1,7 +1,7 @@ export default defineNitroPlugin(nitroApp => { nitroApp.hooks.hook('render:html', (html, { event }) => { if (event.path.includes('/200.html')) { - html.head.push('') + html.head.push('') } }) }) From bdd7ec992698e73c8c8ded70ba8d5a67e5dabccf Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 12 Feb 2026 15:51:09 +0000 Subject: [PATCH 5/6] chore: set to 0 --- server/plugins/fallback-ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/fallback-ui.ts b/server/plugins/fallback-ui.ts index 4eac9cf5b..fee127b36 100644 --- a/server/plugins/fallback-ui.ts +++ b/server/plugins/fallback-ui.ts @@ -1,7 +1,7 @@ export default defineNitroPlugin(nitroApp => { nitroApp.hooks.hook('render:html', (html, { event }) => { if (event.path.includes('/200.html')) { - html.head.push('') + html.head.push('') } }) }) From eb4e22b75d5593bab8ccdcc1fb6f7d5bc4b94c17 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 12 Feb 2026 16:08:56 +0000 Subject: [PATCH 6/6] fix: update to refresh on 1 + ignore `meta-refresh` rule --- nuxt.config.ts | 3 +++ server/plugins/fallback-ui.ts | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 00d89f429..47a66a94c 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -227,6 +227,9 @@ export default defineNuxtConfig({ htmlValidator: { enabled: !isCI || (provider !== 'vercel' && !!process.env.VALIDATE_HTML), + options: { + rules: { 'meta-refresh': 'off' }, + }, failOnError: true, }, diff --git a/server/plugins/fallback-ui.ts b/server/plugins/fallback-ui.ts index fee127b36..b2f89ce30 100644 --- a/server/plugins/fallback-ui.ts +++ b/server/plugins/fallback-ui.ts @@ -1,7 +1,9 @@ export default defineNitroPlugin(nitroApp => { - nitroApp.hooks.hook('render:html', (html, { event }) => { - if (event.path.includes('/200.html')) { - html.head.push('') - } - }) + if (import.meta.prerender) { + nitroApp.hooks.hook('render:html', (html, { event }) => { + if (event.path === '/200.html') { + html.head.push('') + } + }) + } })