-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathturbo.jsonc
More file actions
91 lines (77 loc) · 2.05 KB
/
turbo.jsonc
File metadata and controls
91 lines (77 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"$schema": "https://turbo.build/schema.json",
// Global environment variables that affect all tasks
// These bypass the cache when changed (task will re-run)
"globalDependencies": [
".env",
".env.local",
".env.production",
".env.development"
],
// Environment variables passed through to all tasks
// Add variables here that should be available but don't affect caching
"globalPassThroughEnv": [
// Node environment
"NODE_ENV",
"VERCEL_ENV",
// CI/CD detection
"CI",
"GITHUB_ACTIONS",
"VERCEL",
// Common secrets (passed through, not cached on)
"DATABASE_URL",
"DIRECT_URL"
// Auth (add your auth provider vars here)
// "NEXTAUTH_SECRET",
// "NEXTAUTH_URL",
// API keys (add as needed)
// "STRIPE_SECRET_KEY",
// "OPENAI_API_KEY"
// Feature flags / runtime config
// "NEXT_PUBLIC_*" vars are typically inlined at build time,
// so they should go in task-level "env" not here
],
"tasks": {
// Production build - depends on workspace dependencies being built first
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"],
// Add build-time env vars that should invalidate cache
"env": [
"NEXT_PUBLIC_*"
]
},
// Development server - long-running, no caching
"dev": {
"cache": false,
"persistent": true
},
// Linting - needs built dependencies for type-aware rules
"lint": {
"dependsOn": ["^build"]
},
// Tests - run after local build completes
"test": {
"dependsOn": ["build"],
"env": [
"TEST_DATABASE_URL"
]
},
// Tests with coverage
"test:coverage": {
"dependsOn": ["build"],
"outputs": ["coverage/**"],
"env": [
"TEST_DATABASE_URL"
]
},
// TypeScript checking - needs built dependencies for cross-package types
"typecheck": {
"dependsOn": ["^build"]
},
// Clean build artifacts - never cache
"clean": {
"cache": false
}
}
}