Skip to content

Commit 3c7f608

Browse files
committed
fix: aws stages
1 parent 1ed1415 commit 3c7f608

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

infra/stage.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export const domain = (() => {
55
})()
66

77
export const zoneID = "430ba34c138cfb5360826c4909f99be8"
8-
export const deployAws = $app.stage === "production" || $app.stage === "dev" || $app.stage === "adam"
8+
// Dev owns the shared AWS lake/stats infra for all non-production stages.
9+
export const awsStage = $app.stage === "production" ? "production" : "dev"
10+
export const deployAws = $app.stage === awsStage
911

1012
const githubActionsDeployRole = (() => {
1113
if ($app.stage !== "dev" && $app.stage !== "production") return

sst.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
export default $config({
44
app(input) {
5-
const deployAws = input.stage === "production" || input.stage === "dev" || input.stage === "adam"
5+
// Dev owns the shared AWS lake/stats infra for all non-production stages.
6+
const awsStage = input.stage === "production" ? "production" : "dev"
7+
const deployAws = input.stage === awsStage
68
return {
79
name: "opencode",
810
removal: input?.stage === "production" ? "retain" : "remove",
@@ -48,6 +50,7 @@ export default $config({
4850
return {
4951
StatWorkerUrl: stat.url,
5052
// StatsUrl: stats.app.url,
53+
AwsStage: stage.awsStage,
5154
...(stage.githubActionsDeployRoleArn ? { GithubActionsDeployRoleArn: stage.githubActionsDeployRoleArn } : {}),
5255
}
5356
},

0 commit comments

Comments
 (0)