used env file in authentication instead of static
This commit is contained in:
committed by
Moon Patel
parent
37197e37f1
commit
a1224a8e67
@@ -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' }),
|
||||
|
||||
Reference in New Issue
Block a user