Feat : Setup cloudflare worker for cloud endpoint

This commit is contained in:
decolua
2026-02-09 11:27:41 +07:00
parent c68b875a36
commit 102c193112
25 changed files with 1739 additions and 82 deletions

17
cloud/wrangler.toml Normal file
View File

@@ -0,0 +1,17 @@
name = "9router"
main = "src/index.js"
compatibility_date = "2024-09-23"
compatibility_flags = ["nodejs_compat"]
[alias]
"@/lib/usageDb.js" = "./src/stubs/usageDb.js"
# Step 3: Paste your KV & D1 IDs here
[[kv_namespaces]]
binding = "KV"
id = "YOUR_KV_NAMESPACE_ID"
[[d1_databases]]
binding = "DB"
database_name = "proxy-db"
database_id = "YOUR_D1_DATABASE_ID"