mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-17 05:11:57 +08:00
59 lines
1.7 KiB
TOML
59 lines
1.7 KiB
TOML
name = "rsshub"
|
|
main = "dist-worker/worker.mjs"
|
|
compatibility_date = "2026-09-01"
|
|
# No nodejs_compat needed, read https://developers.cloudflare.com/workers/runtime-apis/nodejs/#get-started
|
|
compatibility_flags = ["global_fetch_strictly_public"]
|
|
|
|
find_additional_modules = true
|
|
base_dir = "dist-worker/modules"
|
|
rules = [{ type = "Data", globs = ["data_files/**"], fallthrough = true }]
|
|
|
|
# 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"
|
|
|
|
# Share Browser Run sessions across requests and Worker isolates.
|
|
[[durable_objects.bindings]]
|
|
name = "BROWSER_SESSIONS"
|
|
class_name = "BrowserSession"
|
|
|
|
[[migrations]]
|
|
tag = "browser-session-v1"
|
|
new_sqlite_classes = ["BrowserSession"]
|
|
|
|
# KV namespace for caching (auto-provisioned on first deploy)
|
|
[[kv_namespaces]]
|
|
binding = "CACHE"
|
|
|
|
# PLAYWRIGHT_WS_ENDPOINT takes priority over BROWSER; use a matching Playwright version.
|
|
# Optional service binding when the WebSocket server is another Worker on this account.
|
|
# [[services]]
|
|
# binding = "PLAYWRIGHT_SERVICE"
|
|
# service = "your-playwright-service"
|
|
|
|
[vars]
|
|
# Only use the service binding for this endpoint origin.
|
|
# PLAYWRIGHT_SERVICE_ORIGIN = "https://your-playwright-service.example.com"
|
|
# 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.
|