#Custom 404 page not working....
7 messages · Page 1 of 1 (latest)
This section in the Starlight docs goes over how to customize/disable the 404 page provided by Starlight https://starlight.astro.build/guides/customization/#custom-404-page
Thank you for your answer, i would like to have two 404 page... one for landing inside pages and the default page for doc... is it possible?
If your using SSR it should be possible using middleware or a catch all route like src/pages/[...any].astro to redirect to the correct error page. Here is an example of custom error handling using a dynamic route: https://github.com/MicroWebStacks/astro-examples?tab=readme-ov-file#08_404-error-handling
But I can’t use ssr with starlight
its incoming, PRs are raised to bring SSR 