feat: Add S3 support for collections#138
Open
DevStarlight wants to merge 5 commits into
Open
Conversation
- Create CollectionsS3 class to load collections from S3 - Create CollectionsLocal class for local filesystem compatibility - Add factory pattern to select between S3 and local collections - Add environment variables COLLECTIONS and COLLECTIONS_S3_URI - Update .env.example with new collection configuration options - Maintain backward compatibility with existing local collections system This allows collections to be stored and served from S3 similar to how assets already work, providing better scalability and distribution.
- Add default port value (3000) when PORT env var is not set - Remove PORT validation that was throwing error when not defined - Improves server startup resilience following legacy code principles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds S3 support for collections, allowing them to be stored and served from AWS S3 (or S3-compatible services) instead of the local filesystem. This enhancement provides better scalability and distribution for collections, similar to how assets already work.
The implementation maintains full backward compatibility with existing local collections while adding the flexibility to use S3 storage.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe your tests:
Test Configuration:
Checklist: