Files
course-craft-service/turbo.json
root dd7c0afaf5 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 <cursoragent@cursor.com>
2026-02-06 10:01:30 +00:00

35 lines
722 B
JSON

{
"$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"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"start": {
"dependsOn": ["build"]
},
"lint": {
"dependsOn": ["^build"],
"outputs": []
},
"clean": {
"cache": false
},
"db:generate": {
"cache": false
},
"db:push": {
"cache": false
},
"db:migrate": {
"cache": false
}
}
}