mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-03-13 10:30:18 +08:00
- Remove Worker-specific route filtering (worker_namespaces) to include all 1537 namespaces in Worker builds - Remove popularity analytics logic (foloAnalysisTop100) as Worker can now handle all routes - Update node:child_process alias in tsdown config to use dedicated shim file - Inline child_process shim in node-module.ts to avoid import cycles - Fix tough-cookie import in telecompaper route (use named import CookieJar) - Remove ESModule rules from wrangler.toml (not needed) This enables full RSSHub functionality on Cloudflare Workers with no memory/size limitations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
37 lines
867 B
TOML
37 lines
867 B
TOML
name = "rsshub"
|
|
main = "dist-worker/worker.mjs"
|
|
compatibility_date = "2025-06-17"
|
|
compatibility_flags = ["nodejs_compat"]
|
|
|
|
# Serve static assets from lib/assets
|
|
assets = { directory = "lib/assets" }
|
|
|
|
[build]
|
|
command = "pnpm run worker-build"
|
|
|
|
# Workers Paid plan is recommended for better performance
|
|
# Free plan has 10ms CPU time limit per request
|
|
# Paid plan has 30s CPU time limit per request
|
|
|
|
[observability]
|
|
enabled = true
|
|
|
|
# Browser Rendering API for puppeteer support
|
|
# Requires Workers Paid plan
|
|
[browser]
|
|
binding = "BROWSER"
|
|
|
|
# KV namespace for caching (auto-provisioned on first deploy)
|
|
[[kv_namespaces]]
|
|
binding = "CACHE"
|
|
|
|
[vars]
|
|
# Environment variables can be set here or via wrangler secret
|
|
# DEBUG_INFO = "false"
|
|
|
|
# For production, use wrangler secret put <KEY> to set sensitive values
|
|
# Example secrets:
|
|
# - ACCESS_KEY
|
|
# - GITHUB_ACCESS_TOKEN
|
|
# - etc.
|