mirror of
https://github.com/logos-messaging/logos-messaging-frontend.git
synced 2026-01-02 13:53:13 +00:00
not using localStorage for the API endpoint if an env variable is set
This commit is contained in:
parent
ad03585d30
commit
1cd19c108e
@ -73,7 +73,7 @@ function App() {
|
||||
setUsername(name);
|
||||
|
||||
const endpoint = localStorage.getItem("apiEndpoint");
|
||||
if (endpoint) {
|
||||
if (endpoint && !import.meta.env.VITE_API_ENDPOINT) {
|
||||
setApiEndpoint(endpoint);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user