Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

workers: update health-check endpoint and compat date

Manav Rathi228fe902b648
diff --git a/infra/workers/health-check/src/index.ts b/infra/workers/health-check/src/index.ts
index afb0257534..550585623b 100644
--- a/infra/workers/health-check/src/index.ts
+++ b/infra/workers/health-check/src/index.ts
@@ -1,4 +1,4 @@
-/** Ping api.ente.io every minute and yell if it doesn't pong. */
+/** Ping api.ente.com every minute and yell if it doesn't pong. */
export default {
async scheduled(_, env: Env, ctx: ExecutionContext) {
@@ -19,7 +19,7 @@ const ping = async (env: Env, ctx: ExecutionContext) => {
let timeout = setTimeout(() => {
ctx.waitUntil(notify("Ping timed out"));
}, 5000);
- const res = await fetch("https://api.ente.io/ping", {
+ const res = await fetch("https://api.ente.com/ping", {
headers: {
"User-Agent": "health-check",
},
diff --git a/infra/workers/health-check/wrangler.toml b/infra/workers/health-check/wrangler.toml
index fadd49de5a..49e22359d8 100644
--- a/infra/workers/health-check/wrangler.toml
+++ b/infra/workers/health-check/wrangler.toml
@@ -1,6 +1,6 @@
name = "health-check"
main = "src/index.ts"
-compatibility_date = "2024-06-14"
+compatibility_date = "2026-04-23"
# Disable the default route, this worker does not handle fetch.
workers_dev = false