From e066376663e849123bf699331a5e128fb92a9617 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 22 Dec 2025 13:39:54 -0500 Subject: [PATCH] fix: correct Better Auth URL variable in docker-compose.yaml The docker-compose.yaml was using BETTER_AUTH_URL, but the actual codebase expects NEXT_PUBLIC_BETTER_AUTH_URL. This is evident in: - packages/auth/src/server.ts (line 8, 45) - apps/web/.env.example This fix ensures Docker deployments use the correct environment variable name, preventing authentication configuration errors. --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index e4f9672f9..d03e09158 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -59,7 +59,7 @@ services: environment: - NODE_ENV=production - DATABASE_URL=postgresql://opencut:opencutthegoat@db:5432/opencut - - BETTER_AUTH_URL=http://localhost:3000 + - NEXT_PUBLIC_BETTER_AUTH_URL=http://localhost:3000 - BETTER_AUTH_SECRET=your-production-secret-key-here - UPSTASH_REDIS_REST_URL=http://serverless-redis-http:80 - UPSTASH_REDIS_REST_TOKEN=example_token