feat: newer compatibility_date, should fix fetch custom port
parent
5203ef3d4b
commit
0f2e9313c1
|
|
@ -26,7 +26,7 @@ resource "cloudflare_worker_script" "uptimeflare" {
|
||||||
name = "uptimeflare_worker"
|
name = "uptimeflare_worker"
|
||||||
content = file("worker/dist/index.js")
|
content = file("worker/dist/index.js")
|
||||||
module = true
|
module = true
|
||||||
compatibility_date = "2023-11-08"
|
compatibility_date = "2025-04-02"
|
||||||
|
|
||||||
kv_namespace_binding {
|
kv_namespace_binding {
|
||||||
name = "UPTIMEFLARE_STATE"
|
name = "UPTIMEFLARE_STATE"
|
||||||
|
|
@ -52,7 +52,7 @@ resource "cloudflare_pages_project" "uptimeflare" {
|
||||||
kv_namespaces = {
|
kv_namespaces = {
|
||||||
UPTIMEFLARE_STATE = cloudflare_workers_kv_namespace.uptimeflare_kv.id
|
UPTIMEFLARE_STATE = cloudflare_workers_kv_namespace.uptimeflare_kv.id
|
||||||
}
|
}
|
||||||
compatibility_date = "2023-11-08"
|
compatibility_date = "2025-04-02"
|
||||||
compatibility_flags = ["nodejs_compat"]
|
compatibility_flags = ["nodejs_compat"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -37,6 +37,6 @@
|
||||||
"postcss-simple-vars": "^7.0.1",
|
"postcss-simple-vars": "^7.0.1",
|
||||||
"prettier": "3.0.3",
|
"prettier": "3.0.3",
|
||||||
"typescript": "^5",
|
"typescript": "^5",
|
||||||
"wrangler": "^3.13.1"
|
"wrangler": "^4.10.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
name = "uptimeflare_worker"
|
name = "uptimeflare_worker"
|
||||||
main = "src/index.ts"
|
main = "src/index.ts"
|
||||||
compatibility_date = "2023-11-08"
|
compatibility_date = "2025-04-02"
|
||||||
kv_namespaces = [{ binding = "UPTIMEFLARE_STATE", id = "UPTIMEFLARE_STATE" }]
|
kv_namespaces = [{ binding = "UPTIMEFLARE_STATE", id = "UPTIMEFLARE_STATE" }]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
name = "uptimeflare_worker"
|
name = "uptimeflare_worker"
|
||||||
main = "src/index.ts"
|
main = "src/index.ts"
|
||||||
compatibility_date = "2023-11-08"
|
compatibility_date = "2025-04-02"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue