Files
RSSHub/wrangler.toml
DIYgod 566f028aaf refactor: migrate browser automation to Playwright (#21901)
* refactor: migrate browser automation to Playwright

* ci: update browser checks for Playwright
2026-05-04 21:16:18 +08:00

37 lines
862 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 Run API for Playwright 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.