Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"jest-fixed-jsdom": "^0.0.11",
"js-cookie": "^3.0.5",
"motion": "^12.23.24",
"next": "16.0.10",
"next": "16.1.6",
"react": "19.2.3",
"react-daum-postcode": "^3.2.0",
"react-dom": "19.2.3",
Expand Down
89 changes: 45 additions & 44 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/api/core/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ authInstance.interceptors.response.use(
return response;
},
async (error) => {
return new CommonErrorResponse(error.response?.data);
throw new CommonErrorResponse(error.response?.data);
},
);

Expand Down
1 change: 1 addition & 0 deletions src/api/core/base/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ baseInstance.interceptors.response.use(
} else {
const currentPath = window.location.pathname + window.location.search;
window.location.href = `/login?error=unauthorized&path=${encodeURIComponent(currentPath)}`;
return;
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/api/core/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/api/service/auth-service/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { authAPI } from '@/api/core';
import { authAPI } from '@/api/core/auth';
import { clearAccessToken, setAccessToken } from '@/lib/auth/token';
import {
GoogleOAuthExchangeRequest,
Expand Down
2 changes: 1 addition & 1 deletion src/api/service/chat-service/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseAPI } from '@/api/core';
import { baseAPI } from '@/api/core/base';
import {
ChattingRoom,
CreateDMPayloads,
Expand Down
2 changes: 1 addition & 1 deletion src/api/service/follower-service/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseAPI } from '@/api/core';
import { baseAPI } from '@/api/core/base';
import { GetFollowParams, GetFollowResponse } from '@/types/service/follow';
import { FollowPathParams } from '@/types/service/user';

Expand Down
2 changes: 1 addition & 1 deletion src/api/service/group-service/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseAPI } from '@/api/core';
import { baseAPI } from '@/api/core/base';
import {
AttendGroupPayload,
CreateGroupPayload,
Expand Down
2 changes: 1 addition & 1 deletion src/api/service/notification-service/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseAPI } from '@/api/core';
import { baseAPI } from '@/api/core/base';
import { GetNotificationListQueryParams, NotificationList } from '@/types/service/notification';

export const notificationServiceRemote = () => ({
Expand Down
2 changes: 1 addition & 1 deletion src/api/service/user-service/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseAPI } from '@/api/core';
import { baseAPI } from '@/api/core/base';
import {
Availability,
FollowPathParams,
Expand Down