diff --git a/packages/next-safe-middleware/src/document/NextPageContext/index.ts b/packages/next-safe-middleware/src/document/NextPageContext/index.ts index 8297afb..64ba5eb 100644 --- a/packages/next-safe-middleware/src/document/NextPageContext/index.ts +++ b/packages/next-safe-middleware/src/document/NextPageContext/index.ts @@ -14,7 +14,7 @@ export function gsspWithNonce< if ("props" in gsspResult) { const nonce = getCreateCtxNonceIdempotent(ctx); const props = await gsspResult.props; - return { props: { ...props, nonce } }; + return { ...gsspResult, props: { ...props, nonce } }; } }; }