[QUESTION] SSG with cacheComponents
Unanswered
Cassin's Kingbird posted this in #help-forum
Cassin's KingbirdOP
is there a way i can still statically generate pages during buildtime with cacheComponents turned on rather than convert them into a partially prerendered page?
1 Reply
@Cassin's Kingbird is there a way i can still statically generate pages during buildtime with cacheComponents turned on rather than convert them into a partially prerendered page?
yes. you need to put "use cache" at the top of the file (like in either layout.tsx or page.tsx) and remove any server-side <Suspense> and or loading.tsx