[READ-ONLY] Mirror of https://github.com/bombshell-dev/docs. bomb.sh/docs
0

Configure Feed

Select the types of activity you want to include in your feed.

fix(404): handle 404s

Nate Moore (Jun 6, 2026, 6:00 PM -0500) 0e9c1fa2 9edc73a4

+4 -3
+4 -3
router/src/index.ts
··· 11 11 if (match) { 12 12 const [, slug, zone] = match; 13 13 if (!/^[0-9a-f]{8}$/.test(slug)) { 14 - return `https://${slug}-bombshell-docs.${zone}`; 14 + return `https://${slug}-bombshell-docs.${zone}/`; 15 15 } 16 16 } 17 - return "https://docs.bomb.sh"; 17 + return "https://docs.bomb.sh/"; 18 18 } 19 19 20 20 export default { ··· 27 27 28 28 // Special case for Starlight's 404 page 29 29 let status = response.status; 30 - if (status === 404) 30 + if (status === 404) { 31 31 response = await fetch(new URL("/docs/404.html", origin)) 32 + } 32 33 33 34 const headers = new Headers(response.headers); 34 35 headers.set("Cross-Origin-Embedder-Policy", "require-corp");