Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

NextAuth doesn't show basePath #1517

Closed
thebetterjort opened this issue Mar 14, 2021 · 0 comments
Closed

NextAuth doesn't show basePath #1517

thebetterjort opened this issue Mar 14, 2021 · 0 comments
Labels
question Ask how to do something or how something works

Comments

@thebetterjort
Copy link

My setup works perfectly locally in docker, but when I try and deploy to a server behind a nginx proxy I'm not able to set the correct url for nextauth and it shows 404 error for

/api/auth/session
/api/auth/_log

I've set this up in my .env.local:
NEXTAUTH_URL=https://example.com/fpd/api/auth

next.config.js
module.exports = {
basePath: '/fpd',

@thebetterjort thebetterjort added the question Ask how to do something or how something works label Mar 14, 2021
@nextauthjs nextauthjs locked and limited conversation to collaborators Mar 14, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Ask how to do something or how something works
Projects
None yet
Development

No branches or pull requests

2 participants