Skip to content

Commit 65567b3

Browse files
authored
Merge pull request #2198 from sopt-makers/feat/#2198
fix: refresh env url 변경, api interceptor 수정
2 parents ee819df + d64cc09 commit 65567b3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.env.development

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ NEXT_PUBLIC_ORIGIN=http://localhost:3000
22
NEXT_PUBLIC_FACEBOOK_APP_ID=
33
NEXT_PUBLIC_GOOGLE_OAUTH_CLIENT_ID=456944189609-jo13a6v8cb25vofi8qfldu3ionkq4u2q.apps.googleusercontent.com
44
NEXT_PUBLIC_APPLE_OAUTH_APP_ID=com.sopt-playground.sopt-iOS
5-
NEXT_PUBLIC_API_URL=https://playground.dev.sopt.org
5+
NEXT_PUBLIC_API_URL=https://playground-dev.sopt.org
66
NEXT_PUBLIC_DEBUG=true
77
NEXT_PUBLIC_GTM_ID=GTM-KJHR376
88
NEXT_PUBLIC_AMPLITUDE_API_KEY=
99
NEXT_PUBLIC_KAKAO_TALK_PLUGIN_KEY=
1010
NEXT_PUBLIC_ADMIN_API_URL=https://api-dev.sopt.org/v2
1111
NEXT_PUBLIC_ADMIN_API_KEY=
1212
NEXT_PUBLIC_OPERATION_API_URL=https://operation.api.dev.sopt.org
13-
NEXT_PUBLIC_AUTH_API_URL=https://auth.api.dev.sopt.org
14-
NEXT_PUBLIC_CREW_API_URL=https://crew.api.dev.sopt.org
13+
NEXT_PUBLIC_AUTH_API_URL=https://auth-dev-api.sopt.org
14+
NEXT_PUBLIC_CREW_API_URL=https://crew-dev.sopt.org

src/api/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export const handleTokenError = async (error: AxiosError<unknown>) => {
9595
// 개인정보 처리방침 페이지는 로그인 필요 없음, 구글 정책상 오픈
9696
return Promise.reject(error);
9797
}
98-
// 에스크 문자를 통한 딥링크 접근을 위해 허용
99-
if (window.location.pathname === '/.well-known/apple-app-site-association' || '/.well-known/assetlinks.json') {
98+
// 앱 딥링크를 위한 .well-known 경로는 인증 체크 제외
99+
if (window.location.pathname.startsWith('/.well-known')) {
100100
return Promise.reject(error);
101101
}
102102
/** 토큰이 없으면 refresh 시도하지 않고 바로 intro로 이동 */
@@ -105,6 +105,7 @@ export const handleTokenError = async (error: AxiosError<unknown>) => {
105105
window.location.replace('/intro');
106106
throw new Error('토큰이 없습니다.');
107107
}
108+
108109
try {
109110
const { data } = await axiosAuthInstance.post<{ data: { accessToken: string } }>(
110111
`/api/v1/auth/refresh/web`,

0 commit comments

Comments
 (0)