Replies: 1 comment
-
You can learn more about this in the Next.js docs: Static and Dynamic Rendering. next-auth only works with dynamic rendering, therefore you'd have to remove Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, when I include generateStaticParams in LocaleLayout as the following.
It prevents me from using server components (next-auth getServerSession) as children of LocaleLayout and gives the following error.
I noticed that generateStaticParams as in the above example is used in example-next-13 but it's not used in example-next-13-next-auth.
I'm new to nextjs and would appreciate any help in knowing the difference between including and not including generateStaticParams in the mentioned examples. Can I simply remove generateStaticParams?
Beta Was this translation helpful? Give feedback.
All reactions