mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +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>
16 lines
445 B
TypeScript
16 lines
445 B
TypeScript
// Worker-specific shim for node:child_process
|
|
// This module is not available in Cloudflare Workers
|
|
|
|
export function execSync(_command: string): Buffer {
|
|
// Return empty buffer - git info will fall back to 'unknown'
|
|
return Buffer.from('');
|
|
}
|
|
|
|
export function exec() {
|
|
throw new Error('exec is not supported in Cloudflare Workers');
|
|
}
|
|
|
|
export function spawn() {
|
|
throw new Error('spawn is not supported in Cloudflare Workers');
|
|
}
|