mirror of
https://github.com/elder-plinius/G0DM0D3.git
synced 2026-11-16 07:02:25 +00:00
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>
19 lines
715 B
TOML
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>"
|