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:
parent
67d058d77c
commit
7225071b64
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue