Skip to content

Commit

Permalink
Fixes broken links to troubleshooting page (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenly authored Sep 7, 2024
1 parent b51c125 commit a9878fb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/next-on-pages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions packages/next-on-pages/docs/supported.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/next-on-pages/src/api/getRequestContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
`);
}

Expand Down

0 comments on commit a9878fb

Please sign in to comment.