Skip to content

Comments

Add support for DO CDN as asset host#1137

Draft
johnpaulashenfelter wants to merge 2 commits intomainfrom
jp/asset-cdn
Draft

Add support for DO CDN as asset host#1137
johnpaulashenfelter wants to merge 2 commits intomainfrom
jp/asset-cdn

Conversation

@johnpaulashenfelter
Copy link
Collaborator

  • This work Closes [link an issue]

What is the goal of this PR and why is this important?

How did you approach the change?

Anything else to add?

# Sync precompiled assets from a Docker image to DigitalOcean Spaces.
# Requires: aws CLI, docker, and DO_SPACES_KEY/DO_SPACES_SECRET/DO_SPACES_REGION env vars.
#
# Usage: bin/sync-assets [image_name]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to set something in DO to run this each deployment?

set -euo pipefail

# Sync precompiled assets from a Docker image to DigitalOcean Spaces.
# Requires: aws CLI, docker, and DO_SPACES_KEY/DO_SPACES_SECRET/DO_SPACES_REGION env vars.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this run? Does our Dockerfile need to be updated?

Uses s3cmd to upload assets/vite to the CDN bucket after
precompilation. Gated behind DO_SPACES_KEY build arg so
local builds are unaffected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants