App wide force-dynamic
Answered
Sloth bear posted this in #help-forum
Sloth bearOP
Is there a way to set
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?
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?
4 Replies
Havana
Did you try setting it inside the layout.tsx?
Answer
Havana
Inside the RootLayout
Sloth bearOP
It worked! thanks
Havana
👍