-
Notifications
You must be signed in to change notification settings - Fork 2
[BUILD] 관객 및 매니저 앱 프록시 연결 #78
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
Conversation
✅ Deploy Preview for hufscheer ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for hufscheer-manager ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
seongminn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
apps/manager/next.config.js
Outdated
| return [ | ||
| { | ||
| source: '/api/:path*/', | ||
| destination: 'https://backoffice.hufstreaming.site/:path*/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
destination은 여전히 환경 변수로 관리하면 보안에 더 유리하지 않을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 저도 그렇게 생각합니다만, env 변수를 사용하는 경우 매니저 앱에서 GET 요청만 보내지는 오류가 발생하여 위와 같이 작성했습니다!
apps/spectator/next.config.js
Outdated
| return [ | ||
| { | ||
| source: '/api/:path*', | ||
| destination: 'https://api.hufstreaming.site/:path*', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 마찬가지입니다!

🌍 이슈 번호
✅ 작업 내용
rewrites기능을 이용하여 프록시를 적용했습니다./api/:path*경로에 요청을 보내면 서버 통신이 이루어집니다.📝 참고 자료
process.env를 사용하는 경우 매니저 앱에서 프록시 연결이 정상적으로 되지 않아(POST 요청이 아니라 GET 요청만 보내는 경우 존재)next.config.js파일 내에 명시적으로 작성했습니다..env파일이 사라져도 될 거 같습니다.♾️ 기타
ECONNREFUSED로 인한 오류가 발생하고 있는데, 찾아보니 정상적이지 않은 URL로 연결을 할 때 발생한다고 하더라구요.