chore: clean up config.matcher in middleware (#18638)

Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
Benny JooandAlex van Andel authored and GitHub committed 2025-01-14 10:24:36 +00:00
1 parent 14151b827f
commit 07085b9ffb
3 files changed
+5 -17

No files matched your search

-2
View File
@@ -85,8 +85,6 @@ CustomError.getInitialProps = async (ctx: AugmentedNextPageContext) => {
log.debug(`server side logged this: ${err?.toString() ?? JSON.stringify(err)}`);
log.info("return props, ", errorInitialProps);
res.setHeader("x-pages-router-error", "true");
return errorInitialProps;
} else {
// Running on the client (browser).