feat: custom error page
This commit is contained in:
6
app/plugins/redirect-error.server.ts
Normal file
6
app/plugins/redirect-error.server.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export default defineNuxtPlugin(() => {
|
||||
const event = useRequestEvent()
|
||||
if (event?.context.redirectNotFound) {
|
||||
showError({ statusCode: 404, message: 'Link not found' })
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user