Skip to content

Commit cff4f27

Browse files
authored
Merge pull request #75 from SOPT-36-NINEDOT/fix/#69/prettierConfig
[Fix]: Vercel 배포 환경 개선 및 빌드 경고 수정
2 parents d5e733e + e6e89bc commit cff4f27

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.0.0

src/api/axiosInstance.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ axiosInstance.interceptors.response.use(
1616
const { status } = error.response;
1717

1818
if (status === 401) {
19-
console.warn('인증 실패');
20-
// 로그아웃 처리나 리다이렉트 로직 추가 예정
19+
// 인증 실패 - 로그아웃 처리나 리다이렉트 로직 추가 예정
2120
}
2221

2322
if (status === 500) {
24-
console.error('서버 오류 발생');
23+
// 서버 오류 발생
2524
}
2625
}
2726
return Promise.reject(error);

src/common/component/MandalartTextField/MandalartTextField.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const inputBase = style({
5656
color: 'inherit',
5757
});
5858

59-
const makeInputStyle = (font: any) =>
59+
const makeInputStyle = (font: Record<string, string | number>) =>
6060
style({
6161
fontFamily: 'Pretendard',
6262
...font,

src/main.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import { QueryClientProvider } from '@tanstack/react-query';
44
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
55

66
import App from './App.tsx';
7+
import { queryClient } from './common/util/queryClient.ts';
78

89
import './style/global.css.ts';
910

10-
import { queryClient } from './common/util/queryClient.ts';
11-
1211
createRoot(document.getElementById('root')!).render(
1312
<StrictMode>
1413
<QueryClientProvider client={queryClient}>

vercel.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"buildCommand": "pnpm build",
3+
"installCommand": "pnpm install",
4+
"framework": "vite",
5+
"outputDirectory": "dist",
6+
"functions": {
7+
"app/api/**/*.ts": {
8+
"runtime": "nodejs20.x"
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)