feat: newer compatibility_date, should fix fetch custom port

This commit is contained in:
lyc8503 committed 2025-04-12 22:20:33 +08:00
1 parent 5203ef3d4b
commit 0f2e9313c1
5 files changed
+712 -556

No files matched your search

+2 -2
View File
@@ -26,7 +26,7 @@ resource "cloudflare_worker_script" "uptimeflare" {
name = "uptimeflare_worker"
content = file("worker/dist/index.js")
module = true
compatibility_date = "2023-11-08"
compatibility_date = "2025-04-02"
kv_namespace_binding {
name = "UPTIMEFLARE_STATE"
@@ -52,7 +52,7 @@ resource "cloudflare_pages_project" "uptimeflare" {
kv_namespaces = {
UPTIMEFLARE_STATE = cloudflare_workers_kv_namespace.uptimeflare_kv.id
}
compatibility_date = "2023-11-08"
compatibility_date = "2025-04-02"
compatibility_flags = ["nodejs_compat"]
}
}
+707 -551
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -37,6 +37,6 @@
"postcss-simple-vars": "^7.0.1",
"prettier": "3.0.3",
"typescript": "^5",
"wrangler": "^3.13.1"
"wrangler": "^4.10.0"
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
name = "uptimeflare_worker"
main = "src/index.ts"
compatibility_date = "2023-11-08"
compatibility_date = "2025-04-02"
kv_namespaces = [{ binding = "UPTIMEFLARE_STATE", id = "UPTIMEFLARE_STATE" }]
+1 -1
View File
@@ -1,3 +1,3 @@
name = "uptimeflare_worker"
main = "src/index.ts"
compatibility_date = "2023-11-08"
compatibility_date = "2025-04-02"