fix function call before load bug

This commit is contained in:
2024-05-14 21:59:06 +02:00
parent 78305e7ca2
commit 4ac9a4d437
2 changed files with 4 additions and 12 deletions

View File

@@ -11,15 +11,7 @@ const config = {
fallback: undefined,
precompress: false,
strict: true
}),
prerender: {
handleHttpError: ({ path, referrer, message }) => {
return {
status: 404,
html: `<h1>${message}</h1><p>Path: ${path}</p><p>Referrer: ${referrer}</p>`
};
}
}
})
}
};