Skip to content

armgit / ente

Public Imported from GitHub
0

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

Build fix

Neeraj Gupta87ce124eb4c9
diff --git a/packages/shared/network/api.ts b/packages/shared/network/api.ts
index 2a3d465050..633e89323f 100644
--- a/packages/shared/network/api.ts
+++ b/packages/shared/network/api.ts
@@ -36,6 +36,14 @@ export const getCastFileURL = (id: number) => {
return `https://cast-albums.ente.io/download/?fileID=${id}`;
};
+export const getCastThumbnailURL = (id: number) => {
+ const endpoint = process.env.NEXT_PUBLIC_ENTE_ENDPOINT;
+ if (isDevDeployment() && endpoint) {
+ return `${endpoint}/cast/files/preview/${id}`;
+ }
+ return `https://cast-albums.ente.io/preview/?fileID=${id}`;
+};
+
export const getThumbnailURL = (id: number) => {
const endpoint = process.env.NEXT_PUBLIC_ENTE_ENDPOINT;
if (isDevDeployment() && endpoint) {