Skip to content

Commit

Permalink
Merge pull request #2 from JunJongHun/feature
Browse files Browse the repository at this point in the history
buildspec.yaml 파일 수정
  • Loading branch information
JunJongHun authored Apr 20, 2024
2 parents 612ecdd + c9ac36b commit e3caaf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ phases:
post_build:
commands:
# copy the contents of /build to S3
- aws s3 cp --recursive ./build s3://arooo-vite-react-deploy-s3-bucket/
- aws s3 cp --recursive ./dist s3://arooo-vite-react-deploy-s3-bucket/
# set the cache-control headers for index.html to prevent
# browser caching
- aws s3 cp --cache-control="max-age=0, no-cache, no-store, must-revalidate" ./build/index.html s3://arooo-vite-react-deploy-s3-bucket/
- aws s3 cp --cache-control="max-age=0, no-cache, no-store, must-revalidate" ./dist/index.html s3://arooo-vite-react-deploy-s3-bucket/
# Invalidate the CloudFront cache
- aws cloudfront create-invalidation --distribution-id E33PEHWJIFQF6A --paths /*
artifacts:
files:
- 'build/*'
- 'build/**/*'
- 'dist/*'
- 'dist/**/*'

0 comments on commit e3caaf5

Please sign in to comment.