From fd1595c3c392ebc6a81ad6dd22d0dfb4149d3f2d Mon Sep 17 00:00:00 2001 From: slawk0 Date: Mon, 23 Dec 2024 00:08:52 +0100 Subject: [PATCH] fixed invalid .env --- client/src/App.tsx | 2 +- server/.env | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 7409de2..e5f3b04 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -13,7 +13,7 @@ import { AuthContext } from './utils/AuthProvider.tsx'; import ProtectedRoutes from './utils/ProtectedRoutes.tsx'; import axios from 'axios'; export const axiosClient = axios.create({ - baseURL: import.meta.env.BASE_URL, + baseURL: import.meta.env.VITE_BASE_URL, }); const router = createBrowserRouter([ { diff --git a/server/.env b/server/.env index 289d5de..bcf432d 100644 --- a/server/.env +++ b/server/.env @@ -3,7 +3,7 @@ CLIENT_PORT=5000 SERVER_PORT=3000 #DO NOT CHANGE JWT_SECRET=fdsfsdfds@ -ORIGIN=http://localhost:5173 +ORIGIN=http://localhost:5173#CLIENT URL PG_HOST=192.168.0.47 PG_USER=postgres