Skip to content

Commit

Permalink
Update next-js.md to add an example on how to use getServerSideProps …
Browse files Browse the repository at this point in the history
…anyway (#1541)

Co-authored-by: Andrea Tarascio <[email protected]>
  • Loading branch information
1 parent 6a8eb96 commit bfd8679
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/src/pages/en/usage/next-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Pairing Next.js with [Vercel](https://vercel.com/) makes developing and deployin

A key feature of Next.js is its data fetching capabilities. We highly recommend reading through the [official documentation](https://nextjs.org/docs/basic-features/data-fetching) to understand how to use each method and how they differ. `getServerSideProps` is generally discouraged unless there is a good reason for it, due to the fact that it is a blocking call and will slow down your site. [Incremental Static Regeneration](https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration) is a great alternative to `getServerSideProps` when the data is dynamic and can be fetched incrementally.

If you need to use this feature anyway, check these links out: [Advanced tRPC - Callers, functions, and gSSP](https://www.youtube.com/watch?v=G2ZzmgShHgQ) and [SSG-Helpers](https://trpc.io/docs/v9/ssg-helpers)

## Useful Resources

| Resource | Link |
Expand Down

2 comments on commit bfd8679

@vercel
Copy link

@vercel vercel bot commented on bfd8679 Aug 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on bfd8679 Aug 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

t3-upgrade – ./upgrade

t3-upgrade.vercel.app
t3-upgrade-git-next-t3-oss.vercel.app
t3-upgrade-t3-oss.vercel.app

Please sign in to comment.