Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ Grist can be configured in many ways. Here are the main environment variables it
| GRIST_MAX_PARALLEL_REQUESTS_PER_DOC| max number of concurrent API requests allowed per document (default is 10, set to 0 for unlimited) |
| GRIST_MAX_UPLOAD_ATTACHMENT_MB | max allowed size for attachments (0 or empty for unlimited). |
| GRIST_MAX_UPLOAD_IMPORT_MB | max allowed size for imports (except .grist files) (0 or empty for unlimited). |
| GRIST_MAX_API_REQUEST_BODY_MB | max allowed size for API request bodies in MB (0 or empty for unlimited, defaults to 1). |
| GRIST_OFFER_ALL_LANGUAGES | if set, all translated langauages are offered to the user (by default, only languages with a special 'good enough' key set are offered to user). |
| GRIST_ORG_IN_PATH | if true, encode org in path rather than domain |
| GRIST_PAGE_TITLE_SUFFIX | a string to append to the end of the `<title>` in HTML documents. Defaults to `" - Grist"`. Set to `_blank` for no suffix at all. |
Expand Down
3 changes: 3 additions & 0 deletions app/common/gristUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@ export interface GristLoadConfig {
// Max upload allowed for attachments, in bytes; 0 or omitted for unlimited.
maxUploadSizeAttachment?: number;

// Max allowed size for API request bodies, in bytes; 0 or omitted for unlimited.
maxApiRequestBodySize?: number;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This object is used to pass environment settings values to the client.

I don't see this property used anywhere. Do you intend to use it client-side?


// Pre-fetched call to getDoc for the doc being loaded.
getDoc?: {[id: string]: Document};

Expand Down
2,665 changes: 1,761 additions & 904 deletions app/server/lib/FlexServer.ts

Large diffs are not rendered by default.

Loading