This commit is contained in:
Manav Rathi
2025-07-07 09:18:29 +05:30
parent 211fa7cc11
commit 6f181a7bbd

View File

@@ -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.