feat: newer compatibility_date, should fix fetch custom port

pull/106/head
lyc8503 2025-04-11 21:33:56 +08:00
parent 5203ef3d4b
commit 0f2e9313c1
5 changed files with 712 additions and 556 deletions

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"]
}
}

1258
package-lock.json generated

File diff suppressed because it is too large Load Diff

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"
}
}

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" }]

View File

@ -1,3 +1,3 @@
name = "uptimeflare_worker"
main = "src/index.ts"
compatibility_date = "2023-11-08"
compatibility_date = "2025-04-02"