Remove unused LS_KEYS.API_ENDPOINT

This is currently unused. We can resurrect this at a later point when we could
want to make the API we connect to dynamically changable within the app settings
itself, but right now that won't be trivial (e.g. mixing credentials across
instances). So just removing this.
This commit is contained in:
Manav Rathi 2024-02-08 14:24:57 +05:30
parent 67d058d77c
commit 7225071b64

View file

@ -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;
}