Add AUTH_URL for NextAuth v5 compatibility
- NextAuth v5 uses AUTH_URL instead of NEXTAUTH_URL - Keep both for backward compatibility - Fixes UntrustedHost error
This commit is contained in:
1
.env
1
.env
@@ -1,6 +1,7 @@
|
||||
DATABASE_URL="mysql://lists_app:ListsApp@2025!@192.168.4.20:3306/ultimate_lists"
|
||||
|
||||
# NextAuth Configuration
|
||||
AUTH_URL=http://localhost:3500
|
||||
NEXTAUTH_URL=http://localhost:3500
|
||||
NEXTAUTH_SECRET=your-secret-key-here-please-change-in-production
|
||||
AUTH_SECRET=your-secret-key-here-please-change-in-production
|
||||
|
||||
@@ -8,6 +8,7 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
- AUTH_URL=${AUTH_URL:-http://localhost:3500}
|
||||
- NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3500}
|
||||
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
||||
- AUTH_SECRET=${AUTH_SECRET}
|
||||
|
||||
Reference in New Issue
Block a user