From dd7c0afaf5772f4dc2a04f1bca4ddaf223eacc8d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 Feb 2026 10:01:30 +0000 Subject: [PATCH] fix: add globalEnv to turbo.json to fix stale rewrite cache in Docker builds Without explicit globalEnv, Turborepo could cache Next.js builds with wrong INTERNAL_API_URL, causing web container to proxy to 127.0.0.1 instead of the Docker service name. Co-authored-by: Cursor --- turbo.json | 1 + 1 file changed, 1 insertion(+) diff --git a/turbo.json b/turbo.json index 00ecf6f..f8a46c2 100644 --- a/turbo.json +++ b/turbo.json @@ -1,6 +1,7 @@ { "$schema": "https://turbo.build/schema.json", "globalDependencies": [".env"], + "globalEnv": ["INTERNAL_API_URL", "API_URL", "NEXT_PUBLIC_SUPABASE_URL", "NEXT_PUBLIC_SUPABASE_ANON_KEY", "NEXT_PUBLIC_APP_URL"], "tasks": { "build": { "dependsOn": ["^build"],