Selaa lähdekoodia

used env variable to set endpoint

Abhinav-grd 4 vuotta sitten
vanhempi
commit
025c97b336
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/utils/common/apiUtil.ts

+ 1 - 1
src/utils/common/apiUtil.ts

@@ -1,5 +1,5 @@
 export const getEndpoint = () => {
-    const endPoint = process.env.NEXT_PUBLIC_ENV == "local" ? "http://localhost:8080" : process.env.NEXT_PUBLIC_ENTE_ENDPOINT || "https://api.ente.io";
+    const endPoint = process.env.NEXT_PUBLIC_ENTE_ENDPOINT ?? "https://api.ente.io";
     console.log(endPoint);
     return endPoint;
 }