Skip to content
Discussion options

You must be logged in to vote

As long as that server is not your own server... cuz otherwise this is an extra HTTP round trip back to yourself - sort of - so it is bound to have some latency. Rather you should go straight to the source. https://nextjs-faq.com/fetch-api-in-rsc.

But of course, that source might not be live during build time. You could do this, with the connection API, essentially the same as you did with force-dynamic, but more semantic - you put the limit.

When PPR becomes stable, this can also mean, pre-render until this point, and let the rest be calculated at request time.

As of today if there data is not there, during build time you have to "defer" it to later on.

import { connection } from 'next/s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by GuidDotEmpty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants