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:
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.
Jump to solution
1 Reply
Solution
Luc Ledo
Luc Ledo15mo ago
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.
Want results from more Discord servers?
Add your server