Next 13.2 - App directory now with route handlers #6810
sFritsch09
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
I have issue for this change. I've got error /api/auth/session 405 code error (Method Not Allowed) and Unexpected end of JSON input. Anyone have solution for this issue? |
Beta Was this translation helpful? Give feedback.
6 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.
-
When using the app dir in Next 13.2 and higher we shouldn't use pages directory anymore and next-auth to app dir too for better performance!
Check out here: Route handlers
current structure: /pages/api/auth/[...nextauth].js
new structure: /app/api/auth/[...nextauth]/route.js
Beta Was this translation helpful? Give feedback.
All reactions