diff --git a/web/.env.development b/web/.env.development index a88645d..87e950d 100644 --- a/web/.env.development +++ b/web/.env.development @@ -1 +1 @@ -REACT_APP_API_BASE_URL=http://localhost:8025 \ No newline at end of file +VITE_API_BASE_URL=http://localhost:8025 diff --git a/web/src/store.tsx b/web/src/store.tsx index 254f628..dc1147c 100644 --- a/web/src/store.tsx +++ b/web/src/store.tsx @@ -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, -}; \ No newline at end of file +};