Skip to content

fix: add 404 page#45

Draft
trueberryless wants to merge 1 commit into
bombshell-dev:mainfrom
trueberryless:fix/38
Draft

fix: add 404 page#45
trueberryless wants to merge 1 commit into
bombshell-dev:mainfrom
trueberryless:fix/38

Conversation

@trueberryless
Copy link
Copy Markdown
Contributor

@trueberryless trueberryless commented May 28, 2026

I would like to test if this fixes the issue #38 in production.

Caution

Please do not merge yet!
I didn't create this PR as a draft, as I am not sure if Cloudflare would create a preview then.

@ghostdevv ghostdevv marked this pull request as draft May 28, 2026 20:45
Comment thread router/src/index.ts
// Special case for Starlight's 404 page
let status = response.status;
if (status === 404)
response = await fetch(new URL("/docs/404.html", "https://docs.bomb.sh/"))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure, we might need to remove the /docs prefix here, as we are behind the proxy:

Suggested change
response = await fetch(new URL("/docs/404.html", "https://docs.bomb.sh/"))
response = await fetch(new URL("/404.html", "https://docs.bomb.sh/"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant