Skip to content

Commit fba766e

Browse files
jonoirwinrsaclaude
andauthored
fix: include compute_tier in create-app payload (#64)
## Summary - `ToPayload()` mapped every scaling field except `ComputeTier`, so `compute_tier = "protected"` in `cerebrium.toml` was silently dropped from the API request body - Companion backend PR: CerebriumAI/dashboard-backend — `jono/fix-compute-tier-in-create-app` ## Test plan - [ ] Set `compute_tier = "protected"` in cerebrium.toml and deploy — verify `computeTier` appears in the request body - [ ] Deploy without `compute_tier` set — verify no regression 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5d8e7cb commit fba766e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/projectconfig/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ func (pc *ProjectConfig) ToPayload() map[string]any {
160160
if pc.Scaling.LoadBalancingAlgorithm != nil {
161161
payload["loadBalancingAlgorithm"] = *pc.Scaling.LoadBalancingAlgorithm
162162
}
163+
if pc.Scaling.ComputeTier != nil {
164+
payload["computeTier"] = *pc.Scaling.ComputeTier
165+
}
163166

164167
// Runtime configuration
165168
if pc.CustomRuntime != nil && pc.PartnerService != nil {

0 commit comments

Comments
 (0)