π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Unify and prune environment variables (#1613)
Manav Rathi6797dde51758
diff --cc packages/shared/network/api.tsindex 1fa6edf1b0,9b8c11b920..d0c16ac459--- a/packages/shared/network/api.ts+++ b/packages/shared/network/api.ts@@@ -22,25 -22,9 +22,25 @@@ export const getPublicCollectionFileURreturn `https://public-albums.ente.io/download/?fileID=${id}`;};+export const getCastFileURL = (id: number) => {+ const endpoint = process.env.NEXT_PUBLIC_ENTE_ENDPOINT;+ if (isDevDeployment() && endpoint) {+ return `${endpoint}/cast/files/download/${id}`;+ }+ 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) {+ if (endpoint) {return `${endpoint}/files/preview/${id}`;}return `https://thumbnails.ente.io/?fileID=${id}`;