Skip to content

Commit 83a4a1f

Browse files
committed
chore: 환경변수값 수정
1 parent 94649c4 commit 83a4a1f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
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:5173';
6+
const apiUrl = VITE_NODE_ENV === 'prod' ? 'https://cs25.co.kr/api' : 'http://localhost:8080';
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:5173';
4+
const API_BASE_URL = VITE_NODE_ENV === 'prod' ? 'https://cs25.co.kr/api' : 'http://localhost:8080';
55

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

vite.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ export default defineConfig({
66
plugins: [react()],
77
server: {
88
open: true,
9-
proxy: {
10-
'/api': {
11-
target: process.env.VITE_API_URL || 'http://localhost:5172',
12-
changeOrigin: true,
13-
rewrite: (path) => path.replace(/^\/api/, '')
14-
}
15-
}
9+
// proxy: {
10+
// '/api': {
11+
// target: process.env.VITE_API_URL || 'http://localhost:5172',
12+
// changeOrigin: true,
13+
// rewrite: (path) => path.replace(/^\/api/, '')
14+
// }
15+
// }
1616
},
1717
build: {
1818
outDir: 'build'

0 commit comments

Comments
 (0)