Clerk + Next.js Static export? #3183
Unanswered
ishaangandhi
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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