Netlify 사이트에 deploy Setting에 들어가서

build Command : CI= npm run build 체크하기
CI=를 안하면 build.command 오류가 뜸.
Netlify페이지 배포까지 완료가 되었을때 페이지에서 새로고침을 누르면
404에러가 뜰때가 있다. 그럴때 public파일 위치에
_redirects 파일을 만들고
/* /index.html 200 작성하면 해결.
https 사이트에서 ajax를 사용해서 비동기로 http 사이트에 request를 요청해서 문제가 발생.
암호화된 HTTPS 기반의 사이트에서 암호화되지 않은 HTTP 사이트에 요청을 보내서 Mixed content 에러가 발생한 것
xhr.js:258 Mixed Content: The page at 'https://master--lighthearted-blancmange-d213ea.netlify.app/station' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://apis.data.go.kr/B552584/ArpltnInforInqireSvc/getCtprvnRltmMesureDnsty?&serviceKey=MC%2B2%2B5MdW%2BBsybf6%2FGq%2BuvRPph6nN%2BBjHzyBH4zTP555b5P6zdHc2nBidBWmb9FS4hipOh1ejgnkIlvYHk1dgA%3D%3D&returnType=json&numOfRows=100&pageNo=1&ver=1.0&sidoName=%EA%B2%BD%EA%B8%B0'. This request has been blocked; the content must be served over HTTPS.
html파일 head에 입력하면 해결.
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">