From cad66aefd208accf7932063351afdb2cddcd3ede Mon Sep 17 00:00:00 2001 From: bokhonglo Date: Tue, 7 Apr 2026 17:56:36 +0700 Subject: [PATCH] update links --- api.ts | 1 + src/components/auth/SignInForm.tsx | 4 ++-- src/components/auth/SignUpForm.tsx | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/api.ts b/api.ts index 0871f4f..4309a11 100644 --- a/api.ts +++ b/api.ts @@ -1,5 +1,6 @@ export const API_URL_ROOT = process.env.NEXT_PUBLIC_API_URL_ROOT || ""; export const URL_MEDIA = "https://cdn.kain.id.vn/history-app/" +export const HOME_URL = "http://localhost:3000" export const API = { User : { CURRENT: `${API_URL_ROOT}/users/current`, diff --git a/src/components/auth/SignInForm.tsx b/src/components/auth/SignInForm.tsx index f9872e5..c0bd3c4 100644 --- a/src/components/auth/SignInForm.tsx +++ b/src/components/auth/SignInForm.tsx @@ -8,7 +8,7 @@ import { apiGetCurrentUser, apiSignIn } from "@/service/auth"; import Link from "next/link"; import React, { useState } from "react"; import { toast } from "sonner"; -import { API } from "../../../api"; +import { API, HOME_URL } from "../../../api"; import { setUserData } from "@/store/features/userSlice"; import { useDispatch } from "react-redux"; import { useRouter } from "next/navigation"; @@ -112,7 +112,7 @@ export default function SignInForm() {