misc: add nodejs_compat for workers, workers can use secrets from env now

This commit is contained in:
lyc8503 committed 2025-12-23 23:31:02 +08:00
1 parent e9d8a1c842
commit baf489e3cb
3 files changed
+3

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ resource "cloudflare_worker_script" "uptimeflare" {
content = file("worker/dist/index.js")
module = true
compatibility_date = "2025-04-02"
compatibility_flags = ["nodejs_compat"]
kv_namespace_binding {
name = "UPTIMEFLARE_STATE"