Skip to content
Draft
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
4 changes: 4 additions & 0 deletions docs/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ Boot is sequential and fail-fast. If migrations fail, the process exits. If a pl

---

The HTTP server accepts request bodies up to 1 GiB, matching Site Import's
archive input limit. CMS archive imports stream media entries to disk; their
manifest has a separate 256 MiB limit.

## Routing

`server/router.ts` exposes one function:
Expand Down
3 changes: 3 additions & 0 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ function corsHeaders(origin: string | null): Record<string, string> {
const server = Bun.serve({
port: config.port,
hostname: config.host,
// Site Import accepts archives up to 1 GiB. Bun's default 128 MiB limit
// otherwise rejects media-heavy bundles before the streaming importer runs.
maxRequestBodySize: 1024 * 1024 * 1024,

// Disable Bun's default 10-second idle timeout. The agent endpoint streams
// NDJSON for as long as Claude's loop is running — Claude's "thinking"
Expand Down