Skip to content

armgit / ente

Public Imported from GitHub
0

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

Take 2

Manav Rathi6f181a7bbdb8
diff --git a/web/packages/base/origins.ts b/web/packages/base/origins.ts
index b12606625c..8e1ef1ddac 100644
--- a/web/packages/base/origins.ts
+++ b/web/packages/base/origins.ts
@@ -82,11 +82,11 @@ export const uploaderOrigin = async () =>
(await customAPIOrigin()) ?? "https://uploader.ente.io";
/**
- * A static build time constant that is `true` if the {@link albumsAppOrigin} is
- * different from the default value (Ente's production instance).
+ * A static build time constant that is `true` if {@link albumsAppOrigin} has
+ * been customized.
*/
export const isCustomAlbumsAppOrigin =
- process.env.NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT != "https://albums.ente.io";
+ !!process.env.NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT;
/**
* Return the origin that serves public albums.