[READ-ONLY] a fast, modern browser for the npm registry

fix: blank page when javascript is disabled (#1426)

Co-authored-by: Daniel Roe <daniel@roe.dev>

authored by

Nandkishor Jadoun
Daniel Roe
and committed by
GitHub
4f4bc1c1 bda3037a

+12
+3
nuxt.config.ts
··· 227 227 228 228 htmlValidator: { 229 229 enabled: !isCI || (provider !== 'vercel' && !!process.env.VALIDATE_HTML), 230 + options: { 231 + rules: { 'meta-refresh': 'off' }, 232 + }, 230 233 failOnError: true, 231 234 }, 232 235
+9
server/plugins/fallback-ui.ts
··· 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 + })