Fix env file loading
This commit is contained in:
parent
83184cc5f3
commit
99840d77da
2 changed files with 3 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
REACT_APP_API_BASE_URL=http://localhost:8025
|
VITE_API_BASE_URL=http://localhost:8025
|
||||||
|
|
|
@ -41,7 +41,7 @@ const url = new URL(window.location.href);
|
||||||
const defaultContext = {
|
const defaultContext = {
|
||||||
state: {
|
state: {
|
||||||
queryClient: new QueryClient(),
|
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: {
|
settings: {
|
||||||
showEmotes: {
|
showEmotes: {
|
||||||
displayName: "Show Emotes",
|
displayName: "Show Emotes",
|
||||||
|
@ -152,4 +152,4 @@ export { store, StateProvider };
|
||||||
|
|
||||||
export const QueryDefaults = {
|
export const QueryDefaults = {
|
||||||
staleTime: 5 * 10 * 1000,
|
staleTime: 5 * 10 * 1000,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue