diff --git a/packages/eslint-plugin-next-on-pages/docs/rules/no-app-nodejs-dynamic-ssg.md b/packages/eslint-plugin-next-on-pages/docs/rules/no-app-nodejs-dynamic-ssg.md index f56592f0c..4314e4968 100644 --- a/packages/eslint-plugin-next-on-pages/docs/rules/no-app-nodejs-dynamic-ssg.md +++ b/packages/eslint-plugin-next-on-pages/docs/rules/no-app-nodejs-dynamic-ssg.md @@ -7,7 +7,7 @@ When using [`generateStaticParams`](https://nextjs.org/docs/app/api-reference/fu This rule makes sure that if you're using `generateStaticParams` at least one of the two export is present. -For more details refer to the [official Cloudflare Next.js docs](https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-nextjs-site/#generatestaticparams). +For more details refer to the [official Cloudflare Next.js docs](https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/troubleshooting/#generatestaticparams). ## ❌ Invalid Code diff --git a/packages/eslint-plugin-next-on-pages/docs/rules/no-pages-nodejs-dynamic-ssg.md b/packages/eslint-plugin-next-on-pages/docs/rules/no-pages-nodejs-dynamic-ssg.md index a4771acaf..97616b303 100644 --- a/packages/eslint-plugin-next-on-pages/docs/rules/no-pages-nodejs-dynamic-ssg.md +++ b/packages/eslint-plugin-next-on-pages/docs/rules/no-pages-nodejs-dynamic-ssg.md @@ -7,7 +7,7 @@ When using [`getStaticPaths`](https://nextjs.org/docs/pages/api-reference/functi This rule makes sure that if you're using `getStaticPaths` at least one of the two aforementioned conditions is met. -For more details refer to the [official Cloudflare Next.js docs](https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-nextjs-site/#generatestaticparams). +For more details refer to the [official Cloudflare Next.js docs](https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/troubleshooting/#generatestaticparams). ## ❌ Invalid Code diff --git a/packages/next-on-pages/README.md b/packages/next-on-pages/README.md index a45f9c037..2173c96a8 100644 --- a/packages/next-on-pages/README.md +++ b/packages/next-on-pages/README.md @@ -130,7 +130,7 @@ To see some examples on how to use Next.js features with `@cloudflare/next-on-pa ## Troubleshooting -If you find yourself hitting some issues with `@cloudflare/next-on-pages` please check out our [official troubleshooting documentation](https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-nextjs-site/#troubleshooting). +If you find yourself hitting some issues with `@cloudflare/next-on-pages` please check out our [official troubleshooting documentation](https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/troubleshooting/). ## More Information diff --git a/packages/next-on-pages/docs/supported.md b/packages/next-on-pages/docs/supported.md index fd1f7ed72..a66ff3196 100644 --- a/packages/next-on-pages/docs/supported.md +++ b/packages/next-on-pages/docs/supported.md @@ -169,8 +169,8 @@ In case the Vercel build process generates prerendered pages for your applicatio For more details see: -- [troubleshooting `generateStaticParams`](https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-nextjs-site/#generatestaticparams) -- [troubleshooting `getStaticPaths` ](https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-nextjs-site/#getstaticpaths) +- [troubleshooting `generateStaticParams`](https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/troubleshooting/#generatestaticparams) +- [troubleshooting `getStaticPaths` ](https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/troubleshooting/#getstaticpaths) #### Caching and Data Revalidation diff --git a/packages/next-on-pages/src/api/getRequestContext.ts b/packages/next-on-pages/src/api/getRequestContext.ts index d8f0019e2..0e2d10c40 100644 --- a/packages/next-on-pages/src/api/getRequestContext.ts +++ b/packages/next-on-pages/src/api/getRequestContext.ts @@ -67,7 +67,7 @@ export function getRequestContext< // so we simply forbid such calls altogether throw new Error(dedent` \n\`getRequestContext\` is being called at the top level of a route file, this is not supported - for more details see https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-nextjs-site/#top-level-getrequestcontext \n + for more details see https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/troubleshooting/#top-level-getrequestcontext \n `); }