Skip to content

Commit 9e5dd8d

Browse files
authored
docs(cli): document --build-timeout unit suffixes and deno.json precedence (#3484)
* `--build-timeout` accepts a unit suffix (`10m`, `600s`) as well as minutes * a deno.json/deno.jsonc `deploy` section takes precedence over the corresponding build options on every deploy
1 parent 06b37d2 commit 9e5dd8d

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎runtime/reference/cli/deploy.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
last_modified: 2026-02-12
2+
last_modified: 2026-10-01
33
title: "deno deploy"
44
command: deploy
55
openGraphLayout: "/open_graph/cli-commands.jsx"
@@ -68,6 +68,11 @@ These flags control where the app code comes from:
6868

6969
#### Build configuration options
7070

71+
If the app directory's `deno.json` or `deno.jsonc` sets build configuration in
72+
its `deploy` section, that takes precedence over the corresponding options on
73+
every deploy. See
74+
[editing app configuration from source code](/deploy/reference/builds/#editing-app-configuration-from-source-code).
75+
7176
- `--app-directory <path>` - Path to the app directory within the project
7277
- `--framework-preset <preset>` - Use a framework preset for build defaults.
7378
Supported values: `astro`, `nextjs`, `nuxt`, `remix`, `solidstart`,
@@ -99,8 +104,8 @@ These flags control where the app code comes from:
99104

100105
#### Build resource options
101106

102-
- `--build-timeout <minutes>` - Build timeout. Allowed values: `5`, `10`, `15`,
103-
`20`, `25`, `30`
107+
- `--build-timeout <duration>` - Build timeout, in minutes or with a unit suffix
108+
(e.g. `10`, `10m` or `600s`). Allowed values: 5, 10, 15, 20, 25 or 30 minutes
104109
- `--build-memory-limit <megabytes>` - Build memory limit in MB. Allowed values:
105110
`1024`, `2048`, `3072`, `4096`
106111
- `--region <region>` - Deployment region. Allowed values: `us`, `eu`, `global`
@@ -119,7 +124,8 @@ you through each configuration step:
119124
6. **Build configuration** - Auto-detects framework settings. You can accept the
120125
detected config or configure manually (framework preset, install/build
121126
commands, runtime mode, etc.)
122-
7. **Build timeout** - How long the build can run
127+
7. **Build timeout** - How long the build can run (skipped when you accept a
128+
build configuration detected from `deno.json` or `deno.jsonc`)
123129
8. **Build memory limit** - How much memory the build gets
124130
9. **Region** - Where to deploy (`us`, `eu`, or `global`)
125131
10. **Confirm** - Review and confirm before creating

0 commit comments

Comments
 (0)