기타

[Netlify] SPA 배포 후 새로고침시 404로 나올 때 대처하는 방법

milliwonkim 2022. 6. 19. 00:39
반응형
SMALL

/public 폴더 안에 ‘_redirects’ 파일을 만듭니다(file extension 붙이지 않습니다.)

해당 파일에 다음과 같이 입력하고 다시 Netlify에 배포하면 이슈가 해소됩니다.

/* /index.html 200

참고

https://docs.netlify.com/routing/redirects/

 

Redirects and rewrites

Netlify builds, deploys, and hosts your frontend. Learn how to get started, find examples, and access documentation for the modern web platform.

docs.netlify.com

 

반응형
LIST