From 99840d77da9734278f66dc2c1689ea12531f0883 Mon Sep 17 00:00:00 2001 From: Leppunen Date: Tue, 7 Mar 2023 20:56:52 +0200 Subject: [PATCH] Fix env file loading --- web/.env.development | 2 +- web/src/store.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 +};