Clerk + Next.js Static export? #3183
Replies: 1 comment
-
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.
-
I tried to export my Next.js app that uses Clerk statically. Right now I'm getting an error that you can only use
auth()
within the/app
directory whenever I export pages. I think this makes sense, since at build time, you wouldn't know who is logged in.Is there a workaround for this?
If not, can you use Clerk as the auth provider for API routes provided by the Next.js backend and front-end separately?
Beta Was this translation helpful? Give feedback.
All reactions