Skip to content
Merged
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
3 changes: 3 additions & 0 deletions apps/api/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ compatibility_date = "2026-01-01"
# Report handled multi-tick stream failures after the microtask checkpoint.
compatibility_flags = ["nodejs_compat", "unhandled_rejection_after_microtask_checkpoint"]
port = 8787
# Preserve pre-4.150 upload behavior: this Worker's generated source maps exceed
# Cloudflare's 60 MiB upload limit. Runtime logging and traces remain enabled.
upload_source_maps = false

# Paid Workers and sub-hour Cron Triggers default to 30s CPU. Declaring that
# budget explicitly prevents an accidental dashboard increase from turning a
Expand Down
105 changes: 56 additions & 49 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ catalog:

# === Cloudflare ===
'@cloudflare/workers-types': 5.20260707.1
wrangler: 4.149.0
wrangler: 4.163.0

# === React Ecosystem ===
react: 19.3.1
Expand Down
1 change: 1 addition & 0 deletions scripts/selfhost/celld-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('buildCelldConfig against the real apps/api/wrangler.toml', () => {
it('drops every Cloudflare-only key and reports why', () => {
for (const key of [
'port',
'upload_source_maps',
'limits',
'alias',
'artifacts',
Expand Down
4 changes: 4 additions & 0 deletions scripts/selfhost/celld-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ const RULES: Readonly<Record<string, Rule>> = {
apply: (v, ctx) => (ctx.out.compatibility_flags = stringArray(v, 'compatibility_flags')),
},
port: { kind: 'drop', reason: 'wrangler dev port; celld listens where the node is started' },
upload_source_maps: {
kind: 'drop',
reason: 'Cloudflare source-map upload setting; celld does not upload a Worker to Cloudflare',
},
limits: { kind: 'drop', reason: 'no celld equivalent (CELLD_HANDLER_BUDGET_S is node-wide)' },
alias: { kind: 'drop', reason: "celld's own esbuild bundles apps/api without the shim" },
vars: {
Expand Down
Loading