ISR an RSC
is it possible to ISR an entire
page.ts
RSC in the app dir? i'm making some DB requests with drizzle inline and then rendering some html based on that. so far it seems like the only way to ISR this is to move the DB requests to a route.ts
and use fetch
with the right settings. Am I right about this or is there an easier way?Solution:Jump to solution
Yes you can ISR a page. Just export revalidate. You can check build logs to confirm that it worked or not. Though some tools like Clerk or edge runtime prevents static generation.
1 Reply
Solution
Yes you can ISR a page. Just export revalidate. You can check build logs to confirm that it worked or not. Though some tools like Clerk or edge runtime prevents static generation.