supermemory/apps/docs-proxy/wrangler.jsonc
Cursor Agent fad0553b67
Add docs-proxy worker app with fetch timeout and caching
Creates apps/docs-proxy/ - a new Cloudflare Worker that replaces the
supermemory-docs-mintlify dashboard-deployed worker.

Key improvements over the previous worker:
- AbortController with 10-second timeout prevents indefinite hangs
  when Mintlify is slow (previous P99 reached 836 seconds)
- Cache API (caches.default) caches successful GET responses for
  5 minutes to reduce upstream load and improve response times
- Returns 504 with a user-friendly message on timeout

Worker proxies all requests to https://supermemory.mintlify.dev
preserving original path, query string, method, headers, and body.

Co-authored-by: Dhravya Shah <dhravya@supermemory.com>
2026-06-30 04:01:28 +00:00

11 lines
230 B
JSON

{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "supermemory-docs-mintlify",
"main": "src/index.ts",
"compatibility_date": "2025-06-20",
"compatibility_flags": [],
"observability": {
"enabled": true
}
}