Skip to content

Commit cc020ea

Browse files
Add docs on runtime memory limit (#2903)
Co-authored-by: Jo Franchetti <jofranchetti@gmail.com>
1 parent 586f049 commit cc020ea

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

deploy/reference/builds.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,18 @@ repository if you're using a recognized framework or common build setup.
112112
application
113113
- **Runtime working directory** (optional): The working directory for the
114114
application at runtime
115+
- **Runtime memory limit** (optional): The maximum amount of memory the
116+
application can use at runtime. Defaults to 768 MB, can be increased to 4
117+
GB on the Pro plan.
115118
- **Static**: For static websites serving pre-rendered content
116119
- **Directory**: Folder containing static assets (e.g., `dist`, `.output`)
117120
- **Single page app mode** (optional): Serves `index.html` for paths that
118121
don't match static files instead of returning 404 errors
122+
- **Automatic**: When using a framework preset, the runtime configuration is
123+
set automatically.
124+
- **Runtime memory limit** (optional): The maximum amount of memory the
125+
application can use at runtime. Defaults to 768 MB, can be increased to 4
126+
GB on the Pro plan.
119127

120128
- **Build timeout**: Maximum time allowed for the build process. Defaults to 5
121129
minutes, can be increased to 15 minutes on the Pro plan.
@@ -152,12 +160,19 @@ the entire configuration will be sourced from the file instead of the dashboard
152160
application.
153161
- `deploy.runtime.cwd` (optional): The working directory for the application
154162
at runtime.
163+
- `deploy.runtime.memory_limit` (optional): The maximum amount of memory the
164+
application can use at runtime. Defaults to 768 MB, can be increased to 4
165+
GB on the Pro plan.
155166
- For static apps:
156167
- `deploy.runtime.type`: Must be set to `"static"`.
157168
- `deploy.runtime.cwd`: Folder containing static assets (e.g., `dist`,
158169
`.output`).
159170
- `deploy.runtime.spa` (optional): If `true`, serves `index.html` for paths
160171
that don't match static files instead of returning 404 errors.
172+
- For apps using a framework preset:
173+
- `deploy.runtime.memory_limit` (optional): The maximum amount of memory the
174+
application can use at runtime. Defaults to 768 MB, can be increased to 4
175+
GB on the Pro plan.
161176

162177
#### Examples
163178

0 commit comments

Comments
 (0)