We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda3037 commit 4f4bc1cCopy full SHA for 4f4bc1c
nuxt.config.ts
@@ -227,6 +227,9 @@ export default defineNuxtConfig({
227
228
htmlValidator: {
229
enabled: !isCI || (provider !== 'vercel' && !!process.env.VALIDATE_HTML),
230
+ options: {
231
+ rules: { 'meta-refresh': 'off' },
232
+ },
233
failOnError: true,
234
},
235
server/plugins/fallback-ui.ts
@@ -0,0 +1,9 @@
1
+export default defineNitroPlugin(nitroApp => {
2
+ if (import.meta.prerender) {
3
+ nitroApp.hooks.hook('render:html', (html, { event }) => {
4
+ if (event.path === '/200.html') {
5
+ html.head.push('<noscript><meta http-equiv="refresh" content="1"></noscript>')
6
+ }
7
+ })
8
9
+})
0 commit comments