multica/turbo.json
Naiyuan Qing 8fcc14ceb1 fix(web): add API_URL to turbo.json globalEnv
Turborepo was not passing the API_URL environment variable to the build
process, causing Next.js rewrites to fall back to the default test API
instead of the production API configured in Vercel.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-13 16:59:18 +08:00

27 lines
655 B
JSON

{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["tsconfig.json", "tsconfig.base.json"],
"globalEnv": ["API_URL"],
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["src/**", "package.json", "tsconfig.json"],
"outputs": ["dist/**"]
},
"dev": {
"dependsOn": ["^build"],
"cache": false,
"persistent": true
},
"typecheck": {
"dependsOn": ["^build"],
"inputs": ["src/**", "package.json", "tsconfig.json"],
"outputs": []
},
"lint": {
"dependsOn": ["^lint"],
"inputs": ["src/**", "package.json"],
"outputs": []
}
}
}