feat: add SKIP_BUILD_GEO env variable#4006
Open
diogotcorreia wants to merge 1 commit intoumami-software:devfrom
Open
feat: add SKIP_BUILD_GEO env variable#4006diogotcorreia wants to merge 1 commit intoumami-software:devfrom
diogotcorreia wants to merge 1 commit intoumami-software:devfrom
Conversation
|
@diogotcorreia is attempting to deploy a commit to the umami-software Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Greptile OverviewGreptile SummaryThis PR adds a new Key Changes:
Use Case: Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Build as Build Process
participant Script as build-geo.js
participant Env as Environment Variables
participant HTTPS as HTTPS Download
participant FS as File System
Build->>Script: Execute build-geo script
Script->>Env: Check SKIP_BUILD_GEO
alt SKIP_BUILD_GEO is set
Script->>Build: Exit 0 (skip geo setup)
else SKIP_BUILD_GEO not set
Script->>Env: Check VERCEL && !BUILD_GEO
alt Vercel without BUILD_GEO
Script->>Build: Exit 0 (skip geo setup)
else Continue with geo setup
Script->>Env: Check GEO_DATABASE_URL
alt Custom URL provided
Script->>Script: Use GEO_DATABASE_URL
else No custom URL
Script->>Env: Check MAXMIND_LICENSE_KEY
alt License key exists
Script->>Script: Use MaxMind URL
else No license key
Script->>Script: Use GitHub fallback URL
end
end
Script->>FS: Check/Create geo directory
alt URL ends with .mmdb
Script->>HTTPS: Download direct .mmdb file
HTTPS->>FS: Save to geo directory
else URL is tar.gz
Script->>HTTPS: Download compressed file
HTTPS->>Script: Stream tar.gz
Script->>Script: Decompress and extract .mmdb
Script->>FS: Save to geo directory
end
Script->>Build: Exit 0 (success) or Exit 1 (error)
end
end
|
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.
Closes #4004