Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove unused LS_KEYS.API_ENDPOINT

Manav Rathi7225071b6463
diff --git a/packages/shared/network/api.ts b/packages/shared/network/api.ts
index 640559874b..9c7e609620 100644
--- a/packages/shared/network/api.ts
+++ b/packages/shared/network/api.ts
@@ -1,11 +1,5 @@
-import { getData, LS_KEYS } from '../storage/localStorage';
-
export const getEndpoint = () => {
- let endpoint = getData(LS_KEYS.API_ENDPOINT);
- if (endpoint) {
- return endpoint;
- }
- endpoint = process.env.NEXT_PUBLIC_ENTE_ENDPOINT;
+ const endpoint = process.env.NEXT_PUBLIC_ENTE_ENDPOINT;
if (isDevDeployment() && endpoint) {
return endpoint;
}