Update download script to use HTTP endpoint#116
Merged
bryanchriswhite merged 1 commit intomainfrom Dec 26, 2025
Merged
Conversation
Simplify postinstall script by always using the https://db.lenr.academy endpoint which requires no credentials. This improves developer experience as contributors don't need AWS CLI or credentials to get started. - Remove checkAwsCli() function and S3 download path - Use DB_BASE_URL constant for clarity - Add --progress-bar to curl for better feedback
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.
Description
Update the postinstall script to use the
https://db.lenr.academyHTTP endpoint for database downloads instead of S3, eliminating the need for AWS CLI or credentials.Type of Change
Related Issues
N/A
Motivation and Context
The previous postinstall script required AWS CLI for optimal performance and fell back to an incorrect S3 URL (
https://db.lenr.academy.s3.amazonaws.com). Sincedb.lenr.academyis already configured for static website hosting with public access, we can simplify the script to always use the HTTP endpoint, improving developer experience for new contributors who don't have AWS credentials configured.Changes Made
checkAwsCli()function and S3 download code pathDB_BASE_URLconstant pointing tohttps://db.lenr.academycurlwith the HTTP endpoint--progress-barflag to curl for better visual feedbackTesting
Test Environment
Test Cases
Test Results
https://db.lenr.academy/latest/parkhomov.dbDatabase Impact
Performance Impact
Performance notes: HTTP downloads via CloudFront CDN perform comparably to S3 direct access.
UI/UX Changes
N/A - build script only
Screenshots
N/A
Responsive Design
Documentation
Code Quality
anyunless necessary)npm run lintpasses without errorsnpm run buildcompletes successfullyDeployment Checklist
npm run build && npm run preview)Breaking Changes
Does this PR introduce breaking changes? No
Rollback Plan
Additional Notes
This change aligns the postinstall script behavior with
scripts/download-db.sh, which already uses the HTTP endpoint correctly.Reviewer Checklist