Skip to content

Commit e9605e8

Browse files
ci: pass deploy secrets through Turbo strict env mode
Turbo 2.x strict env mode stripped CLOUDFLARE_*/ALCHEMY_* (and the CI state-store opt-out) before the deploy task ran, so CI deploys failed. Declare them as passThroughEnv on deploy/destroy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7ac2d20 commit e9605e8

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

turbo.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,34 @@
2121
"cache": false
2222
},
2323
"deploy": {
24-
"cache": false
24+
"cache": false,
25+
"passThroughEnv": [
26+
"CI",
27+
"CLOUDFLARE_API_TOKEN",
28+
"CLOUDFLARE_ACCOUNT_ID",
29+
"CLOUDFLARE_EMAIL",
30+
"CLOUDFLARE_API_KEY",
31+
"ALCHEMY_PASSWORD",
32+
"ALCHEMY_STATE_TOKEN",
33+
"ALCHEMY_CI_STATE_STORE_CHECK",
34+
"CF_ACCESS_TEAM_DOMAIN",
35+
"CF_ACCESS_AUD",
36+
"CORS_ORIGIN",
37+
"WEB_URL"
38+
]
2539
},
2640
"destroy": {
27-
"cache": false
41+
"cache": false,
42+
"passThroughEnv": [
43+
"CI",
44+
"CLOUDFLARE_API_TOKEN",
45+
"CLOUDFLARE_ACCOUNT_ID",
46+
"CLOUDFLARE_EMAIL",
47+
"CLOUDFLARE_API_KEY",
48+
"ALCHEMY_PASSWORD",
49+
"ALCHEMY_STATE_TOKEN",
50+
"ALCHEMY_CI_STATE_STORE_CHECK"
51+
]
2852
}
2953
}
3054
}

0 commit comments

Comments
 (0)