Auth works in dev but not prod
Unanswered
Kromfohrländer posted this in #help-forum
KromfohrländerOP
✓ Compiled /api/auth/[...nextauth] in 2.5s (1284 modules)
POST /api/auth/callback/credentials 200 in 4305ms
GET /api/auth/signin?csrf=true 302 in 31ms
GET /auth/signin?callbackUrl=https%3A%2F%2Fschoolportal.ashank.tech%2Fdashboard 200 in 312ms
GET /api/auth/session 200 in 31ms
leaves me stranded there, but on localhost everything proceeds properly
✓ Compiled /auth/signin in 187ms (1324 modules)
GET /auth/signin 200 in 292ms
GET /api/dashboard/admin/stats 200 in 6024ms
GET /api/auth/session 200 in 37ms
GET /api/auth/providers 200 in 16ms
GET /api/auth/csrf 200 in 7ms
Attempting sign in...
POST /api/auth/callback/credentials 200 in 379ms
GET /api/auth/session 200 in 16ms
GET /dashboard 200 in 11ms
GET /dashboard/admin 200 in 10ms
GET /dashboard/admin 200 in 11ms
GET /api/dashboard/admin/stats 200 in 1205ms
5 Replies
KromfohrländerOP
I'm running prod on a docker image of nodejs running on port 5000 (adjusted next dev/start accordingly), behind nginx proxy manager (pointed the domain -> :5000 properly)
I'm able to access the site but loading into the dashboard doesn't seem to work
KromfohrländerOP
Auth internal url worked
Ffs I should've read docs
Can't mark as solved on mobile