misc: add nodejs_compat for workers, workers can use secrets from env now
This commit is contained in:
1 parent
e9d8a1c842
commit
baf489e3cb
3 files changed
+3
No files matched your search
@@ -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"
|
||||
|
||||
@@ -2,3 +2,4 @@ name = "uptimeflare_worker"
|
||||
main = "src/index.ts"
|
||||
compatibility_date = "2025-04-02"
|
||||
kv_namespaces = [{ binding = "UPTIMEFLARE_STATE", id = "UPTIMEFLARE_STATE" }]
|
||||
compatibility_flags = [ "nodejs_comat" ]
|
||||
@@ -1,3 +1,4 @@
|
||||
name = "uptimeflare_worker"
|
||||
main = "src/index.ts"
|
||||
compatibility_date = "2025-04-02"
|
||||
compatibility_flags = [ "nodejs_comat" ]
|
||||
Reference in new issue
Block a user