misc: add nodejs_compat for workers, workers can use secrets from env now
parent
e9d8a1c842
commit
baf489e3cb
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue