Files
G0DM0D3/wrangler.toml
faber 6b2cd9da5d fix: bounded streaming body read + update stale fallback comments
Replace request.text() with a streaming reader that cancels at
512 KiB — prevents a headerless or chunked-encoding request from
buffering an unbounded payload into Worker memory. No WAF rule
dependency.

Also updates the file header and wrangler.toml comments to
describe the current in-memory fallback (not the old direct-commit
behavior).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-11 07:33:30 -04:00

19 lines
715 B
TOML

# Cloudflare Pages — KV Namespace for telemetry batching
#
# PRODUCTION: Bind in Cloudflare Pages Dashboard:
# Settings → Functions → KV namespace bindings
# Variable name: TELEMETRY_KV
# KV namespace: (create one named "g0dm0d3-telemetry" first)
#
# LOCAL DEV: Create a preview namespace and set the id below,
# then run `wrangler pages dev` to test locally.
#
# If TELEMETRY_KV is not bound, telemetry buffers in the Worker
# isolate's memory and flushes to HF in batches (zero-config fallback).
# KV is preferred because it survives isolate eviction.
# Uncomment and set a real namespace ID for local dev:
# [[kv_namespaces]]
# binding = "TELEMETRY_KV"
# id = "<your-namespace-id-from-dashboard>"