fix: pass NEXT_PUBLIC_* env vars as build args for Supabase client

Next.js inlines NEXT_PUBLIC_* vars at build time. They must be
available as ARGs during the Docker build, not just as runtime
environment variables.
This commit is contained in:
m
2026-03-25 15:53:32 +01:00
parent e57b7c48ed
commit 45605c803b
2 changed files with 7 additions and 0 deletions

View File

@@ -22,6 +22,9 @@ services:
frontend:
build:
context: ./frontend
args:
NEXT_PUBLIC_SUPABASE_URL: ${SUPABASE_URL}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${SUPABASE_ANON_KEY}
expose:
- "3000"
depends_on: