Skip to content

Improve deploy script#33

Merged
TrueWill merged 4 commits intomainfrom
improve-deploy
Feb 15, 2026
Merged

Improve deploy script#33
TrueWill merged 4 commits intomainfrom
improve-deploy

Conversation

@TrueWill
Copy link
Owner

@TrueWill TrueWill commented Feb 10, 2026

Summary

  • Replace s3cmd with aws s3 sync for reliable MIME type detection
  • Add --delete flag to remove stale files from the S3 bucket
  • Set Cache-Control headers: immutable for hashed assets, no-cache for root files
  • Purge Cloudflare cache for non-hashed URLs (index.html, manifest.json, favicon.ico) after deploy
  • Extract deploy logic into scripts/deploy.sh for maintainability

Test plan

  • Verify aws CLI and wrangler CLI are available and authenticated
  • Run yarn deploy and confirm build, S3 sync, and cache purge all succeed
  • Check deployed files have correct Content-Type headers
  • Confirm old files are removed from the S3 bucket after a deploy

🤖 Generated with Claude Code

Replace s3cmd with aws s3 sync for reliable MIME types, add --delete
to clean stale files, set Cache-Control headers, and purge Cloudflare
cache for non-hashed URLs after deploy.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@TrueWill TrueWill self-assigned this Feb 10, 2026
@TrueWill TrueWill merged commit 9b6553e into main Feb 15, 2026
@TrueWill TrueWill deleted the improve-deploy branch February 15, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant