Repository navigation
Conversation
Replace the hardcoded RAILPACK_VERSIONS array with a tRPC query that fetches releases from the GitHub API. Versions are cached for 24 hours and only fetched when the Railpack build type is selected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ection - Change Zod schema default from hardcoded "0.15.4" to null so Zod does not silently override the form field before the fetched versions arrive - Set form value to latest fetched version when no version is selected - Strip v prefix from manually entered versions before saving - Fix form reset loop by splitting useEffect into separate concerns Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Related Documentation 1 document(s) may need updating based on files changed in this PR: Dokploy's Space README
|
|
#4022 won't be necessary once this PR gets merged |
Add validation to ensure that a railpack version is provided when the build type is set to railpack. Update the submission logic to normalize the railpack version and disable the submit button if the version is missing. This enhances user experience by preventing submission with invalid data.
Made-with: Cursor
…/dynamic-railpack-versions
This branch has not been deployed
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.
What is this PR about?
Railpack versions are hardcoded today, so new releases require a Dokploy update. This PR fetches the 20 most recent GitHub releases for the build selector and adds an explicit
latestoption that follows new releases when building.latestversion on the server for 24 hours, deduplicate concurrent requests, and optionally authenticate withGITHUB_TOKEN.latestto a concrete release before generating the build command so the installed CLI and frontend image use the same version, including installation through sudo.vprefix from manual entries, reject empty Railpack versions, and handle loading and GitHub failures in the form. Preserve the existing optional build settings in the API.Validation
Checklist
canary, updated with the latest upstream changes.CONTRIBUTING.md.