fix: send headers to error rewrites

This commit is contained in:
Michael Zetterberg
2024-08-23 09:00:08 +02:00
parent 159114a082
commit efd2e1730c
5 changed files with 42 additions and 33 deletions

View File

@@ -1,11 +1,5 @@
import { getIntl } from "@/i18n"
import NotFound from "@/components/Current/NotFound"
export default async function NotFound() {
const { formatMessage } = await getIntl()
return (
<main>
<h1>{formatMessage({ id: "Not found" })}</h1>
<p>{formatMessage({ id: "Could not find requested resource" })}</p>
</main>
)
export default function NotFoundPage() {
return <NotFound />
}