Skip to content

Commit 94649c4

Browse files
committed
chore: test
1 parent 7f5ebb4 commit 94649c4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/utils/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import apiClient from './axiosConfig';
33
import { AxiosResponse } from 'axios';
44

55
const { VITE_NODE_ENV } = import.meta.env;
6-
const apiUrl = VITE_NODE_ENV === 'prod' ? 'https://cs25.co.kr/api' : 'http://localhost:8080';
6+
const apiUrl = VITE_NODE_ENV === 'prod' ? 'https://cs25.co.kr/api' : 'http://localhost:5173';
77

88
// Axios wrapper for consistency with existing code
99
async function apiRequest<T>(

src/utils/axiosConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios, { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
22

33
const { VITE_NODE_ENV } = import.meta.env;
4-
const API_BASE_URL = VITE_NODE_ENV === 'prod' ? 'https://cs25.co.kr/api' : 'http://localhost:8080';
4+
const API_BASE_URL = VITE_NODE_ENV === 'prod' ? 'https://cs25.co.kr/api' : 'http://localhost:5173';
55

66
// Create axios instance for authenticated requests
77
const apiClient: AxiosInstance = axios.create({

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
open: true,
99
proxy: {
1010
'/api': {
11-
target: process.env.VITE_API_URL || 'http://localhost:8080',
11+
target: process.env.VITE_API_URL || 'http://localhost:5172',
1212
changeOrigin: true,
1313
rewrite: (path) => path.replace(/^\/api/, '')
1414
}

0 commit comments

Comments
 (0)