본문 바로가기

Javascript Tips

react - spa nginx 배포 후 새로고침시 흰화면

728x90

index.html에 다음과 같이 설정하면 된다.

 

 

    <base href="/">

 

head 태그 사이에 넣어주면 됨