Closed ymc9 closed 4 months ago
@ymc9 I managed to get Clerk working with ZenStack and App Router
Here's what my code looks like in /src/app/api/model/[...path]/route.ts
: https://gist.github.com/andrictham/1f4d729f33a63ab1fa817b40418f6e35
@ymc9 I managed to get Clerk working with ZenStack and App Router
Here's what my code looks like in
/src/app/api/model/[...path]/route.ts
: https://gist.github.com/andrictham/1f4d729f33a63ab1fa817b40418f6e35
Cool! Great to know that! I'll incorporate it into the docs.
Thank you for the help!
It's live here now: https://zenstack.dev/docs/guides/authentication/clerk#create-an-enhanced-prisma-client
The sample project also has two branches for the app router and pages router, respectively.
@andrictham
Fixed in v2.2.0
https://zenstack.dev/docs/guides/authentication/clerk