Skip to content

armgit / ente

Public Imported from GitHub
0

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

web: switch default API origin to api.ente.com

Manav Rathi84f589d051ef
diff --git a/web/apps/payments/src/services/billing.ts b/web/apps/payments/src/services/billing.ts
index bbab46565c..18c67f640d 100644
--- a/web/apps/payments/src/services/billing.ts
+++ b/web/apps/payments/src/services/billing.ts
@@ -83,7 +83,7 @@ export const parseAndHandleRequest = async () => {
}
};
-const apiOrigin = import.meta.env.VITE_ENTE_ENDPOINT ?? "https://api.ente.io";
+const apiOrigin = import.meta.env.VITE_ENTE_ENDPOINT ?? "https://api.ente.com";
const paymentIntentPollIntervalMs = 2_000;
const paymentIntentPollTimeoutMs = 300_000;
const pendingPaymentContextStorageKey = "ente.payments.pending-context";
diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsx
index ff53198c19..93de39bb25 100644
--- a/web/apps/photos/src/pages/index.tsx
+++ b/web/apps/photos/src/pages/index.tsx
@@ -51,7 +51,7 @@ const Page: React.FC = () => {
"ente-wasm"
);
console.log(file_download_url("https://example.org", 88n));
- const client = new HttpClient("https://api.ente.io");
+ const client = new HttpClient("https://api.ente.com");
console.log(await client.get("/ping"));
}
diff --git a/web/packages/base/origins.ts b/web/packages/base/origins.ts
index 6ec7427a95..e11ed9580a 100644
--- a/web/packages/base/origins.ts
+++ b/web/packages/base/origins.ts
@@ -4,11 +4,11 @@ import { getKVS } from "ente-base/kv";
* Return the origin (scheme, host, port triple) that should be used for making
* API requests to museum.
*
- * This defaults "https://api.ente.io", Ente's production API servers. but can
+ * This defaults "https://api.ente.com", Ente's production API servers, but can
* be overridden when self hosting or developing (see {@link customAPIOrigin}).
*/
export const apiOrigin = async () =>
- (await customAPIOrigin()) ?? "https://api.ente.io";
+ (await customAPIOrigin()) ?? "https://api.ente.com";
/**
* A convenience function to construct an endpoint in a one-liner.