Replies: 2 comments
-
|
I am wondering if there is any way right now to create a 'catch-all', to prevent the server from crashing... |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Available since Astro 4.10.3 🎉 (according to the docs): https://docs.astro.build/en/basics/astro-pages/#custom-500-error-page |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Support a
src/pages/500.{astro,js,ts}file to customize the server error page.Background & Motivation
I use Astro to power backend-only projects. No kidding. It's quite fascinating that Astro is the only (AFAIK) framework that tick all these boxes:
VercelMany adaptersNot a small feat even for something as big as Next.js... well, they do have some nice features, one being customizable 500 page.
I wonder, since we have custom 404 page, why not also this? Indeed it's not something users (should) see a lot, but it's an improvement, say, over the provider one:
Goals
Example
Just like any other page out there:
Beta Was this translation helpful? Give feedback.
All reactions