From 2b9e04a94f9950e8f70ec415dc11616523d38ce2 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sun, 21 Jan 2024 20:06:46 +0100 Subject: [PATCH] Fixed build. --- .env | 1 - .env.production | 1 + src/main.tsx | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 .env create mode 100644 .env.production diff --git a/.env b/.env deleted file mode 100644 index 00b7054..0000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -VITE_API_URL=https://ether-scan.stefans-entwicklerecke.de/api diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..d01eab8 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_APP_API_URL=https://ether-scan.stefans-entwicklerecke.de/api diff --git a/src/main.tsx b/src/main.tsx index 9236c16..4b06fe6 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -18,7 +18,7 @@ const router = createHashRouter(createRoutesFromElements( if (import.meta.env.PROD) { - axios.defaults.baseURL = import.meta.env.VITE_API_URL + axios.defaults.baseURL = import.meta.env.VITE_APP_API_URL } ReactDOM.createRoot(document.getElementById('root')!).render(