fix api url mismatch

This commit is contained in:
mengstabketemaw
2026-06-02 09:23:01 +03:00
parent 8e86f74be6
commit e735ba4fca
3 changed files with 34 additions and 12 deletions

View File

@@ -17,11 +17,11 @@ import { notify } from '@ema-platform/ui';
const BASE_API_URL =
(import.meta as { env?: Record<string, string> }).env?.['VITE_BASE_API_URL'] ??
'http://localhost:3000';
'http://localhost:3001/api';
const schema = z.object({
email: z.string().email('Enter a valid email'),
password: z.string().min(6, 'Password must be at least 6 characters'),
password: z.string().min(0, 'Password must be at least 6 characters'),
});
type FormValues = z.infer<typeof schema>;