Pārlūkot izejas kodu

used env variable to set endpoint

Abhinav-grd 4 gadi atpakaļ
vecāks
revīzija
025c97b336
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/utils/common/apiUtil.ts

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

@@ -1,5 +1,5 @@
 export const getEndpoint = () => {
 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);
     console.log(endPoint);
     return endPoint;
     return endPoint;
 }
 }