used env variable to set endpoint
This commit is contained in:
parent
e490df7440
commit
025c97b336
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue