New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: pages configuration #10288
fix: pages configuration #10288
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@chungweileong94 is attempting to deploy a commit to the authjs Team on Vercel. A member of the Team first needs to authorize it. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10288 +/- ##
==========================================
+ Coverage 39.38% 39.40% +0.02%
==========================================
Files 171 171
Lines 27285 27286 +1
Branches 1159 1167 +8
==========================================
+ Hits 10745 10752 +7
+ Misses 16540 16534 -6 ☔ View full report in Codecov by Sentry. |
could you add a test for it @chungweileong94 ? 🙏 otherwise LGTM |
@ThangHuuVu Just added the test in |
Is there a temporary work around to this in the meantime by any chance? If not, when will the fix be released? |
I'm currently using |
* fix: pages configuration * fix: typo * chore: test custom pages config --------- Co-authored-by: Thang Vu <hi@thvu.dev>
* fix: pages configuration * fix: typo * chore: test custom pages config --------- Co-authored-by: Thang Vu <hi@thvu.dev>
☕️ Reasoning
Currently, in the latest next-auth v5, if you customize the error page to
/auth/error
in thepages
config, next-auth will redirect tohttp://localhost:3000/api/auth/auth/error
instead ofhttp://localhost:3000/auth/error
🧢 Checklist
🎫 Affected issues
Fixes: #10289
📌 Resources