chore: clean up config.matcher in middleware (#18638)
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
14151b827f
commit
07085b9ffb
3 files changed
+5
-17
No files matched your search
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user