File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -227,6 +227,9 @@ export default defineNuxtConfig({
227227
228228 htmlValidator : {
229229 enabled : ! isCI || ( provider !== 'vercel' && ! ! process . env . VALIDATE_HTML ) ,
230+ options : {
231+ rules : { 'meta-refresh' : 'off' } ,
232+ } ,
230233 failOnError : true ,
231234 } ,
232235
Original file line number Diff line number Diff line change 11export default defineNitroPlugin ( nitroApp => {
2- nitroApp . hooks . hook ( 'render:html' , ( html , { event } ) => {
3- if ( event . path . includes ( '/200.html' ) ) {
4- html . head . push ( '<noscript><meta http-equiv="refresh" content="0"></noscript>' )
5- }
6- } )
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+ }
79} )
You can’t perform that action at this time.
0 commit comments