-
Notifications
You must be signed in to change notification settings - Fork 2
[BUILD] Netlify 프록시 환경 설정 #80
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. |
|
여전히 post 시에 403 에러가 발생하네요ㅠㅠ 프록시 서버에 대한 cors를 해제하지 않아서 그런 거 같기도 합니다. 한 번 확인해보면 좋을 것 같아요! 여담으로, _rewrites 파일 말고, 루트 경로에 netlify.toml을 생성하고 그 안에서 rewrite 설정을 해주니 되었다는 글도 본 적 있습니다! 참고 정도만 하면 좋지 않을까 해요ㅎㅎ |
apps/spectator/public/netlify.toml
Outdated
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.
netlify.toml 파일은 public 디렉토리가 아니라 package.json, app, next.config.js 등이 있는 루트 경로에 생성해주어야 합니다!
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.
위치 변경해서 다시 올려보겠습니다.

🌍 이슈 번호
✅ 작업 내용
/api/*path를 API 호출이 가능하게 변경하였습니다.📝 참고 자료
/public/_redirects파일을 syntax에 맞게 수정하면 룰이 적용됩니다.next.config.js파일에 적용한 rewrites 룰도 유지하였습니다.