How to enable SSG for a route group?
Answered
Black-headed Grosbeak posted this in #help-forum
Black-headed GrosbeakOP
I have the "standard" project setup which uses the app folder and is structured this way:
How can I enable that everything in
/app/(landing)//app/(admin)/How can I enable that everything in
(landing) uses SSG? I can't mark the whole app as a static export since in the (admin) route I use SSR and RSCs / Server Actions ... and stuff.2 Replies
@Black-headed Grosbeak I have the "standard" project setup which uses the app folder and is structured this way:
`/app/(landing)/`
`/app/(admin)/`
How can I enable that everything in `(landing)` uses SSG? I can't mark the whole app as a `static export` since in the `(admin)` route I use SSR and RSCs / Server Actions ... and stuff.
In app/(landing)/layout.tsx, export const dynamic = "error"
Answer
Schneider’s Smooth-fronted Caiman
hm