Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

백엔드의 HOST를 환경변수로 지정할 수 있게 해주세요 #185

Open
hepheir opened this issue Nov 13, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@hepheir
Copy link
Member

hepheir commented Nov 13, 2024

현재 /src/utils.js에서

export const client = axios.create({
  withCredentials: true,
  baseURL: process.env.REACT_APP_API_BASE_URL,
  headers: {
    'Content-Type': process.env.REACT_APP_CONTENT_TYPE,
  },
});

위의 코드에 process.env.REACT_APP_API_BASE_URL가 그 역할인 것으로 알고있는데, 브라우저에서는 이것이 잘 적용되지 않는 것으로 보입니다.

@hepheir hepheir added the bug Something isn't working label Nov 13, 2024
@Whatdoyumin
Copy link
Member

각 api 요청의 불필요한 path를 제거했으니 확인 부탁드립니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants