Skip to content

Commit e5f316a

Browse files
committed
fix(webapp): treat preview environments as cloud installs
isCloud() only matched the hardcoded cloud origins, so PR preview environments never initialized the billing client and anything gated on it silently no-op'd. Most visibly: remote builds were never enqueued and deployments sat queued forever. Preview origins now count as cloud.
1 parent b9ba358 commit e5f316a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

apps/webapp/app/services/platform.v3.server.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,13 @@ export function isCloud(): boolean {
11371137
return true;
11381138
}
11391139

1140+
// PR preview environments are cloud-style installs running against the
1141+
// cloud's staging services. Without this, anything gated on the billing
1142+
// client silently no-ops there (e.g. remote builds never get enqueued).
1143+
if (env.LOGIN_ORIGIN.endsWith(".triggerlabs.dev")) {
1144+
return true;
1145+
}
1146+
11401147
if (process.env.CLOUD_ENV === "development" && process.env.NODE_ENV === "development") {
11411148
return true;
11421149
}

0 commit comments

Comments
 (0)