[TIL] react netlify 배포시 browserRouter 적용

Funnystyle·2021년 4월 20일
0

public/_redirects 이라는 파일을 만들고 내용을 아래와 같이 하면 된다.

/*    /index.html   200 

참고:
https://answers.netlify.com/t/netlify-page-not-found-when-sharing-react-router-dom-based-links/11744/6
https://sschannak.medium.com/netlify-and-react-router-1537aebe6256

profile
polyglot

0개의 댓글