Add a route for manually revalidating cache contents by tag.
The route is protected by authentication to prevent abuse. Automated
actions in CI should be set up with a basic API key, which has a rate
limit of 6 hours between changes. Overriding is possible with an
override key, which should be used as an escape hatch.
Usage:
- API key provided in header `Authorization: Bearer <KEY>`
- Body has shape `{ tags: string[] }`
83 lines
2.0 KiB
JSON
83 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"ui": "stream",
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**", ".next/**"]
|
|
},
|
|
"design-system#build": {
|
|
"dependsOn": ["^build"],
|
|
"env": ["NEXT_PUBLIC_*"],
|
|
"outputs": [".next/**", "!.next/cache/**", ".contentlayer/**"]
|
|
},
|
|
"docs#build": {
|
|
"dependsOn": ["^build"],
|
|
"env": [
|
|
"ANALYZE",
|
|
"DOCS_REVALIDATION_KEYS",
|
|
"DOCS_REVALIDATION_OVERRIDE_KEYS",
|
|
"NEXT_PUBLIC_*",
|
|
"NODE_ENV",
|
|
"OPENAI_API_KEY",
|
|
"SUPABASE_SECRET_KEY"
|
|
],
|
|
"outputs": [".next/**", "!.next/cache/**"]
|
|
},
|
|
"studio#build": {
|
|
"dependsOn": ["^build"],
|
|
"env": [
|
|
"ANALYZE",
|
|
"AUTH_JWT_SECRET",
|
|
"DEFAULT_ORGANIZATION_NAME",
|
|
"DEFAULT_PROJECT_NAME",
|
|
"LOGFLARE_API_KEY",
|
|
"LOGFLARE_URL",
|
|
"NEXT_PUBLIC_*",
|
|
"OPENAI_API_KEY",
|
|
"PLATFORM_PG_META_URL",
|
|
"READ_ONLY_API_KEY",
|
|
"READ_ONLY_URL",
|
|
"STUDIO_PG_META_URL",
|
|
"SUPABASE_ANON_KEY",
|
|
"SUPABASE_PUBLIC_URL",
|
|
"SUPABASE_SERVICE_KEY",
|
|
"SUPABASE_URL",
|
|
"VERCEL_GIT_COMMIT_SHA",
|
|
"VERCEL_ENV",
|
|
"VERCEL_URL"
|
|
],
|
|
"passThroughEnv": ["SENTRY_ORG", "SENTRY_PROJECT", "SENTRY_AUTH_TOKEN"],
|
|
"outputs": [".next/**", "!.next/cache/**"]
|
|
},
|
|
"www#build": {
|
|
"dependsOn": ["^build"],
|
|
"env": [
|
|
"ANALYZE",
|
|
"GITHUB_CHANGELOG_APP_*",
|
|
"MISC_USE_SERVICE_ROLE_KEY",
|
|
"NEXT_PUBLIC_*",
|
|
"NODE_ENV",
|
|
"OPENAI_API_KEY",
|
|
"npm_lifecycle_event",
|
|
"LIVE_SUPABASE_COM_SERVICE_ROLE_KEY",
|
|
"VERCEL_URL"
|
|
],
|
|
"outputs": [".next/**", "!.next/cache/**", ".contentlayer/**"]
|
|
},
|
|
"lint": {
|
|
"outputs": []
|
|
},
|
|
"dev": {
|
|
"cache": false
|
|
},
|
|
"test": {
|
|
"cache": false
|
|
},
|
|
"typecheck": {
|
|
"dependsOn": ["^typecheck"],
|
|
"outputs": ["**/node_modules/.cache/tsbuildinfo.json"]
|
|
}
|
|
}
|
|
}
|