feat: custom error page

This commit is contained in:
2026-03-25 20:54:58 +01:00
parent 783ee1b334
commit b763eb70db
3 changed files with 34 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
export default defineNuxtPlugin(() => {
const event = useRequestEvent()
if (event?.context.redirectNotFound) {
showError({ statusCode: 404, message: 'Link not found' })
}
})