We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc11ba5 commit 41d58dcCopy full SHA for 41d58dc
packages/next/next-server/server/render.tsx
@@ -754,6 +754,12 @@ export async function renderToHTML(
754
key !== 'props' && key !== 'redirect' && key !== 'unstable_notFound'
755
)
756
757
+ if ((data as any).unstable_redirect) {
758
+ throw new Error(
759
+ `unstable_redirect has been renamed to redirect, please update the field to continue. Page: ${pathname}`
760
+ )
761
+ }
762
+
763
if (invalidKeys.length) {
764
throw new Error(invalidKeysMsg('getServerSideProps', invalidKeys))
765
}
0 commit comments