yufan.me/src/pages/500.astro
Yufan Sheng f2f7cd8fa6
feat: use s3 api for uploading the static files. (#46)
* chore: bump the dependencies.

* feat: use s3 v3 client instead of the upyun sdk.

* chore: change the schema of biome.
2024-06-20 22:41:40 +08:00

20 lines
478 B
Plaintext

---
import BaseLayout from '@/layouts/BaseLayout.astro';
interface Props {
error: unknown;
}
const { error } = Astro.props;
---
<BaseLayout title="内部错误">
<div class="data-null">
<div class="my-auto">
<h1 class="font-number">❌500</h1>
<div>抱歉,网站系统出现内部错误。请刷新页面重试,或者返回上一页。</div>
<div>{error instanceof Error ? error.message : '未知错误'}</div>
</div>
</div>
</BaseLayout>