Files
Jules 4a32420ddf fix(web): build through turbo instead of rebuilding shared deps
* fix(web): build through turbo instead of rebuilding shared deps

The app build re-ran the logos-ui build, whose `tsup --clean` wiped
packages/ui/dist while logos-crm compiled against it in parallel. The deploy
now runs the same turbo build as CI, so only the ui task writes that dist.
`out/**` joins the build outputs since turbo owns the export now.

* docs(web): build the app through turbo

* fix(web): build on Vercel through turbo

Vercel ran the app build directly, which no longer builds
@acid-info/logos-ui and failed to resolve it. vercel.json pins the deploy to
the same turbo command Jenkins runs.
2026-08-25 00:19:01 +09:00

67 lines
1.6 KiB
JSON

{
"$schema": "https://turborepo.dev/schema.json",
"ui": "stream",
"globalEnv": ["NODE_ENV", "VERCEL", "VERCEL_URL", "LOGOS_CONTENT_ROOT"],
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".next/**", "!.next/cache/**", "dist/**", "out/**"],
"env": [
"PAYLOAD_SECRET",
"DATABASE_URL",
"DATABASE_AUTH_TOKEN",
"PAYLOAD_DB_SCHEMA",
"PAYLOAD_DB_PUSH",
"PAYLOAD_DB_POOL_MAX",
"PAYLOAD_DB_CONNECTION_TIMEOUT_MS",
"PAYLOAD_DB_QUERY_TIMEOUT_MS",
"PAYLOAD_DB_IDLE_TIMEOUT_MS",
"PAYLOAD_HEALTH_TIMEOUT_MS",
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY",
"VERCEL_BRANCH_URL",
"VERCEL_ENV",
"NEXT_PUBLIC_SERVER_URL",
"NEXT_PUBLIC_WEB_URL"
],
"passThroughEnv": ["GITHUB_TOKEN"]
},
"lint": {
"dependsOn": ["^lint"]
},
"lint:fix": {
"cache": false
},
"test": {
"dependsOn": ["^build"],
"outputs": []
},
"test:static": {
"dependsOn": ["build"],
"outputs": []
},
"test:perf": {
"dependsOn": ["build"],
"outputs": []
},
"check-types": {
"dependsOn": ["^build", "^check-types"]
},
"generate-types": {
"cache": false,
"outputs": ["packages/types/src/payload.ts"]
},
"dev": {
"dependsOn": ["^build"],
"cache": false,
"persistent": true,
"env": ["DATABASE_URL"]
},
"@acid-info/logos-ui#dev": {
"dependsOn": ["build"],
"cache": false,
"persistent": true
}
}
}