From a1224a8e670a6d5fb1f9650f7fb194e0178740c8 Mon Sep 17 00:00:00 2001 From: Soumya Ranjan Swain Date: Mon, 30 Oct 2023 22:58:10 +0530 Subject: [PATCH] used env file in authentication instead of static --- frontend/src/pages/Authentication/Authentication.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/Authentication/Authentication.jsx b/frontend/src/pages/Authentication/Authentication.jsx index 133edcf..66c80d1 100644 --- a/frontend/src/pages/Authentication/Authentication.jsx +++ b/frontend/src/pages/Authentication/Authentication.jsx @@ -8,7 +8,7 @@ import { ZodError, z } from 'zod'; import { UserDataContext } from '../../context/user-data-context'; -let host = 'http://localhost:8080'; +let host = import.meta.env.VITE_BACKEND_HOST; const loginSchema = z.object({ username: z.string().min(5, { message: 'Username should not be less than 5 characters' }).max(15, { message: 'Username should not be more than 15 characters' }),