Skip to content

Commit

Permalink
[fix] baseUrl 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
harin0707 committed Jun 1, 2024
1 parent a1d23f2 commit ca93fb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hooks/useLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ const useLogin = () => {

const requestBody = JSON.stringify({ username, password});

const apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
// const apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
const endpoint='/users/login';
const url = `${apiBaseUrl}/api/v1/${endpoint}`;
const apiBaseUrl = 'http://ec2-43-203-119-113.ap-northeast-2.compute.amazonaws.com';
const url = `${apiBaseUrl}/api/v1${endpoint}`;


console.log(requestBody);

Expand Down

0 comments on commit ca93fb3

Please sign in to comment.