Skip to content

armgit / ente

Public Imported from GitHub
0

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

workers: switch media proxy workers to api.ente.com and bump compat

Manav Rathief0545409736
diff --git a/infra/workers/cast-albums/src/index.ts b/infra/workers/cast-albums/src/index.ts
index dec71fac47..e493132299 100644
--- a/infra/workers/cast-albums/src/index.ts
+++ b/infra/workers/cast-albums/src/index.ts
@@ -70,7 +70,7 @@ const handleGET = async (request: Request) => {
};
let response = await fetch(
- `https://api.ente.io/cast/files${pathname}${fileID}?${params.toString()}`,
+ `https://api.ente.com/cast/files${pathname}${fileID}?${params.toString()}`,
{ headers },
);
diff --git a/infra/workers/cast-albums/wrangler.toml b/infra/workers/cast-albums/wrangler.toml
index 3496aebe7a..aa0d6ec88d 100644
--- a/infra/workers/cast-albums/wrangler.toml
+++ b/infra/workers/cast-albums/wrangler.toml
@@ -1,6 +1,6 @@
name = "cast-albums"
main = "src/index.ts"
-compatibility_date = "2025-06-03"
+compatibility_date = "2026-04-23"
routes = [
{ pattern = "cast-albums.ente.io", custom_domain = true }
diff --git a/infra/workers/files/src/index.ts b/infra/workers/files/src/index.ts
index 0dda4e39dc..6956e790d5 100644
--- a/infra/workers/files/src/index.ts
+++ b/infra/workers/files/src/index.ts
@@ -82,7 +82,7 @@ const handleGET = async (request: Request) => {
};
let response = await fetch(
- `https://api.ente.io/files/download/${fileID}?${params.toString()}`,
+ `https://api.ente.com/files/download/${fileID}?${params.toString()}`,
{ headers },
);
diff --git a/infra/workers/files/wrangler.toml b/infra/workers/files/wrangler.toml
index 12e27ade88..7c053fa661 100644
--- a/infra/workers/files/wrangler.toml
+++ b/infra/workers/files/wrangler.toml
@@ -1,6 +1,6 @@
name = "files"
main = "src/index.ts"
-compatibility_date = "2025-06-03"
+compatibility_date = "2026-04-23"
routes = [
{ pattern = "files.ente.io", custom_domain = true }
diff --git a/infra/workers/public-albums/src/index.ts b/infra/workers/public-albums/src/index.ts
index ef036f513b..d64da1f80c 100644
--- a/infra/workers/public-albums/src/index.ts
+++ b/infra/workers/public-albums/src/index.ts
@@ -79,7 +79,7 @@ const handleGET = async (request: Request) => {
};
let response = await fetch(
- `https://api.ente.io/public-collection/files${pathname}${fileID}?${params.toString()}`,
+ `https://api.ente.com/public-collection/files${pathname}${fileID}?${params.toString()}`,
{ headers },
);
diff --git a/infra/workers/public-albums/wrangler.toml b/infra/workers/public-albums/wrangler.toml
index 4643736fd6..d01cf7b5c9 100644
--- a/infra/workers/public-albums/wrangler.toml
+++ b/infra/workers/public-albums/wrangler.toml
@@ -1,6 +1,6 @@
name = "public-albums"
main = "src/index.ts"
-compatibility_date = "2025-06-03"
+compatibility_date = "2026-04-23"
routes = [
{ pattern = "public-albums.ente.io", custom_domain = true }
diff --git a/infra/workers/thumbnails/src/index.ts b/infra/workers/thumbnails/src/index.ts
index 1672680ac6..5d0ed62ad1 100644
--- a/infra/workers/thumbnails/src/index.ts
+++ b/infra/workers/thumbnails/src/index.ts
@@ -74,7 +74,7 @@ const handleGET = async (request: Request) => {
};
let response = await fetch(
- `https://api.ente.io/files/preview/${fileID}?${params.toString()}`,
+ `https://api.ente.com/files/preview/${fileID}?${params.toString()}`,
{ headers },
);
diff --git a/infra/workers/thumbnails/wrangler.toml b/infra/workers/thumbnails/wrangler.toml
index 8c7117c848..bee41db468 100644
--- a/infra/workers/thumbnails/wrangler.toml
+++ b/infra/workers/thumbnails/wrangler.toml
@@ -1,6 +1,6 @@
name = "thumbnails"
main = "src/index.ts"
-compatibility_date = "2025-06-03"
+compatibility_date = "2026-04-23"
routes = [
{ pattern = "thumbnails.ente.io", custom_domain = true }