Skip to content

Commit

Permalink
Update deploy-frontend.sh - original
Browse files Browse the repository at this point in the history
  • Loading branch information
cami-espinozaq authored Oct 27, 2023
1 parent ec790b9 commit 5440f53
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/deploy-frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ aws s3 sync build s3://${BUCKET} --delete --acl public-read
for FILE in $(find build -name index.html -printf '%P\n'); do
aws s3 cp build/${FILE} s3://${BUCKET}/${FILE} --metadata-directive REPLACE --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html --acl public-read
done
if "$BRANCH" == "production"; then
aws s3 cp build/service-worker.js s3://${BUCKET}/service-worker.js --metadata-directive REPLACE --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type application/javascript --acl public-read
fi

aws s3 cp build/service-worker.js s3://${BUCKET}/service-worker.js --metadata-directive REPLACE --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type application/javascript --acl public-read

0 comments on commit 5440f53

Please sign in to comment.