Fix env file loading

This commit is contained in:
Leppunen 2023-03-07 20:56:52 +02:00
parent 83184cc5f3
commit 99840d77da
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
REACT_APP_API_BASE_URL=http://localhost:8025
VITE_API_BASE_URL=http://localhost:8025

View file

@ -41,7 +41,7 @@ const url = new URL(window.location.href);
const defaultContext = {
state: {
queryClient: new QueryClient(),
apiBaseUrl: import.meta.env.REACT_APP_API_BASE_URL ?? window.location.protocol + "//" + window.location.host,
apiBaseUrl: import.meta.env.VITE_API_BASE_URL ?? window.location.protocol + "//" + window.location.host,
settings: {
showEmotes: {
displayName: "Show Emotes",
@ -152,4 +152,4 @@ export { store, StateProvider };
export const QueryDefaults = {
staleTime: 5 * 10 * 1000,
};
};