Skip to content

Commit e1cbb6d

Browse files
Fix ssr redirect/notFound results
1 parent c407570 commit e1cbb6d

File tree

1 file changed

+1
-1
lines changed
  • packages/next-safe-middleware/src/document/NextPageContext

1 file changed

+1
-1
lines changed

packages/next-safe-middleware/src/document/NextPageContext/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function gsspWithNonce<
1414
if ("props" in gsspResult) {
1515
const nonce = getCreateCtxNonceIdempotent(ctx);
1616
const props = await gsspResult.props;
17-
return { props: { ...props, nonce } };
17+
return { ...gsspResult, props: { ...props, nonce } };
1818
}
1919
};
2020
}

0 commit comments

Comments
 (0)