[AWS] Web이 배포 적용이 안되는경우

힐링힐링·2024년 5월 29일
0

프로젝트

목록 보기
8/10

로컬에서 빌드하고 배포 했음에도 AWS S3 버킷에 적용 안되는 상황

해결방법

헤당 AWS S3 버킷에 배포 ID 캐시 초기화

 aws cloudfront create-invalidation --distribution-id 버킷ID --paths "/*"

내아이디는 아래와 같다.

 aws cloudfront create-invalidation --distribution-id E2L6NUYP0OU7KV --paths "/*"

다시 build 후 배포

npm run build
cd dist
aws s3 sync . s3://platformlogics.com   
profile
블로그 이전합니다 https://james-kim-tech.tistory.com/

0개의 댓글