Skip to content

Commit

Permalink
fix: 서버 base url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Mar 10, 2024
1 parent f60fc39 commit 5bd46b7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Empty file.
3 changes: 1 addition & 2 deletions src/__tests__/home.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe('홈 페이지 테스트', () => {
const button = screen.getByText('로그인하기');

expect(button).toBeInTheDocument();
vi.resetAllMocks();
});

it('로그인 했을 때는 유저의 홈으로 리다이렉트 합니다.', async () => {
Expand All @@ -43,6 +42,6 @@ describe('홈 페이지 테스트', () => {

render(await Home());

expect(redirect).toHaveBeenCalledWith(`member/2`);
expect(redirect).toHaveBeenCalledWith(`member/${member.memberId}`);
});
});
3 changes: 1 addition & 2 deletions src/services/auth/getMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export async function checkIsLoggedIn(request: GetMemberRequest): Promise<IsLogg
},
};
const res = await fetch(
`${process.env.VITE_SERVER_BASE_URL}/api/v1/member`,
// `https://api.anotherme.today/api/v1/member`,
`${process.env.NEXT_PUBLIC_SERVER_BASE_URL}/api/v1/member`,
request.accessToken ? authOption : undefined,
);
if (res.ok) {
Expand Down

0 comments on commit 5bd46b7

Please sign in to comment.