로그인 쪽 url 수정
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useState, useEffect, useCallback } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { apiCall } from "@/lib/api/client";
|
||||
import { apiCall, API_BASE_URL } from "@/lib/api/client";
|
||||
|
||||
// 사용자 정보 타입 정의
|
||||
interface UserInfo {
|
||||
@@ -98,8 +98,7 @@ export const useAuth = () => {
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
// API 기본 URL 설정
|
||||
const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || "http://39.117.244.52:8080/api";
|
||||
// API 기본 URL 설정 (동적으로 결정)
|
||||
|
||||
/**
|
||||
* 현재 사용자 정보 조회
|
||||
|
||||
Reference in New Issue
Block a user