Next.js Discord

Discord Forum

How to enable SSG for a route group?

Answered
Black-headed Grosbeak posted this in #help-forum
Open in Discord
Black-headed GrosbeakOP
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.
Answered by joulev
In app/(landing)/layout.tsx, export const dynamic = "error"
View full answer

2 Replies