diff --git a/.env b/.env index 0583bfc..e69de29 100644 --- a/.env +++ b/.env @@ -1 +0,0 @@ -VITE_API_BASE_URL=http://localhost:8080 \ No newline at end of file diff --git a/src/api/codingService.js b/src/api/codingService.js index 4d3f2a2..0886d31 100644 --- a/src/api/codingService.js +++ b/src/api/codingService.js @@ -4,7 +4,7 @@ * Vite 프록시 설정을 통해 백엔드(Spring) API 서버와 통신합니다. * vite.config.js에서 '/api' → http://localhost:8080 같은 식으로 프록시된다고 가정합니다. */ -const BASE_URL = "/api"; +const BASE_URL = "http://52.79.181.115:30000/api"; /** * 난이도에 따라 랜덤 코딩 문제를 가져옵니다. diff --git a/src/api/interviewService.js b/src/api/interviewService.js index c8b1c62..2376769 100644 --- a/src/api/interviewService.js +++ b/src/api/interviewService.js @@ -1,6 +1,6 @@ // src/api/interviewService.js -const BASE_URL = "/api"; +const BASE_URL = "http://52.79.181.115:30000/api"; /** * 새 AI 면접 세션 시작 (레포 URL 기반 질문 생성) diff --git a/src/api/reviewService.js b/src/api/reviewService.js index 3f73cd1..06336c5 100644 --- a/src/api/reviewService.js +++ b/src/api/reviewService.js @@ -1,5 +1,5 @@ // src/api/reviewService.js -const BASE_URL = "http://localhost:8080/api"; +const BASE_URL = "http://52.79.181.115:30000/api"; export const fetchCodeReview = async (code, comment, repoUrl) => { const payload = { diff --git a/src/features/auth/GithubLoginButton.jsx b/src/features/auth/GithubLoginButton.jsx index 7a77fa7..e878e27 100644 --- a/src/features/auth/GithubLoginButton.jsx +++ b/src/features/auth/GithubLoginButton.jsx @@ -1,18 +1,28 @@ // src/features/auth/GithubLoginButton.jsx -const API_BASE_URL = import.meta.env.VITE_API_BASE_URL; +import { IconBrandGithub } from "@tabler/icons-react"; + +const API_BASE_URL = "http://52.79.181.115:30000/api"; export default function GithubLoginButton() { const handleGithubLogin = () => { - // 백엔드 OAuth 진입점 (나중에 실제 엔드포인트로만 바꿔주면 됨) + // 백엔드 OAuth 진입점 (실제 GitHub 로그인 시작) window.location.href = `${API_BASE_URL}/oauth2/authorization/github`; }; return ( ); } diff --git a/src/features/auth/Login.jsx b/src/features/auth/Login.jsx index 2f40349..5c54fe5 100644 --- a/src/features/auth/Login.jsx +++ b/src/features/auth/Login.jsx @@ -3,16 +3,55 @@ import GithubLoginButton from "./GithubLoginButton"; export default function Login() { return ( -
+ AI-powered code reviews, mock interviews,
and technical testing.
+
+ © 2025 SkillBoost. All rights reserved. +
+