Next.js Discord

Discord Forum

Using fetch not opting out static rendering

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Original message was deleted.

3 Replies

Fetch is not part of what Nextjs call "dynamic API" so the page can still be static
Dynamic APIs like cookies and headers, and the searchParams prop in Pages depend on runtime incoming request information. Using them will opt a route out of the Full Route Cache, in other words, the route will be dynamically rendered.