Skip to content

Best approach to implementing static asset middleware plugin? #805

Answered by ayushn21
caseyohara asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @caseyohara,

I don't know if there are any existing plugins that do what you're after. The cloudinary plugin (https://github.com/bridgetownrb/bridgetown-cloudinary) helps you integrate Cloudinary with Bridgetown which can do transformations and the like, I'm not sure, I've never used it.

To your actual question, I'd firstly recommend against storing your images in the Git repo itself. It can cause the repo size to really balloon. I have a photo gallery website powered by Bridgetown (https://fslash42.com). I do store the photos in the project, but they're in a gitignored folder. I have a rake task which syncs this folder to an S3 bucket which has a CloudFront distribution in front of i…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@caseyohara
Comment options

@ayushn21
Comment options

Answer selected by caseyohara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants