fix(build): set default railpackVersion to '0.2.2' and ensure cleanup in build process

- Updated the ShowBuildChooseForm component to default railpackVersion to '0.2.2' if not specified.
- Added cleanup step in the buildRailpack function to remove the builder container after execution.
- Refactored application router to include railpackVersion in the application schema.
This commit is contained in:
Mauricio Siu
2025-08-03 02:00:10 -06:00
parent cc6445a8ec
commit e785ad5599
3 changed files with 33 additions and 28 deletions
@@ -185,7 +185,9 @@ export const ShowBuildChooseForm = ({ applicationId }: Props) => {
isStaticSpa:
data.buildType === BuildType.static ? data.isStaticSpa : null,
railpackVersion:
data.buildType === BuildType.railpack ? data.railpackVersion : null,
data.buildType === BuildType.railpack
? data.railpackVersion || "0.2.2"
: null,
})
.then(async () => {
toast.success("Build type saved");