Next.js Discord

Discord Forum

App wide force-dynamic

Answered
Sloth bear posted this in #help-forum
Open in Discord
Sloth bearOP
Is there a way to set export const dynamic = 'force-dynamic' to apply over all routes in the application?
My app is entirely behind a login page and all data is fetched and rendered on request-time. How can I opt in to full SSR in the app directory?
Answered by Havana
Did you try setting it inside the layout.tsx?
View full answer

4 Replies

Havana
Did you try setting it inside the layout.tsx?
Answer
Havana
Inside the RootLayout
Sloth bearOP
It worked! thanks
Havana
👍