Skip to content

Commit b4f08f1

Browse files
authored
feat(config): add deploy.buildTimeout and deploy.runtime.memoryLimit to the schema (#36938)
* `deploy.buildTimeout`: a whole number of seconds, or a whole number with an `s`, `m` or `h` suffix * `deploy.runtime.memoryLimit`, plus its deprecated snake_case alias `memory_limit`
1 parent b8681df commit b4f08f1

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎cli/schemas/config-file.v1.json‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,20 @@
589589
"type": "string",
590590
"description": "The command to run before deploying, usually used to run database migrations. When specified, takes precedence over all configuration specified in the console."
591591
},
592+
"buildTimeout": {
593+
"description": "The maximum time the build may take: a whole number of seconds, or a whole number with an `s`, `m` or `h` suffix (e.g. `\"10m\"`). Defaults to 5 minutes, and is capped to the maximum of the organization's plan. Part of the build configuration, but on its own it does not take precedence over the configuration specified in the console.",
594+
"oneOf": [
595+
{
596+
"type": "integer",
597+
"minimum": 1
598+
},
599+
{
600+
"type": "string",
601+
"pattern": "^[1-9][0-9]*[smh]$"
602+
}
603+
],
604+
"examples": ["10m", "90s", 600]
605+
},
592606
"runtime": {
593607
"type": "object",
594608
"description": "Runtime configuration for the deployed application. When specified, takes precedence over all configuration specified in the console.",
@@ -617,6 +631,17 @@
617631
"type": "boolean",
618632
"description": "Enable single-page application mode for static deployments. When enabled, all routes will fall back to index.html.",
619633
"default": false
634+
},
635+
"memoryLimit": {
636+
"type": "integer",
637+
"minimum": 1,
638+
"description": "The maximum amount of memory the application can use at runtime, in megabytes. Applies to dynamic mode and framework presets, not to static mode. Capped to the maximum of the organization's plan."
639+
},
640+
"memory_limit": {
641+
"type": "integer",
642+
"minimum": 1,
643+
"description": "Deprecated: use `memoryLimit` instead.",
644+
"deprecated": true
620645
}
621646
}
622647
},

0 commit comments

Comments
 (0)