fix: turn off static deployment if you switch buildpacks

This commit is contained in:
Andras Bacsai
2023-10-13 21:08:59 +02:00
parent d2d1f984e1
commit 1c97d47ea0
4 changed files with 7 additions and 3 deletions

View File

@@ -77,6 +77,10 @@ class General extends Component
];
public function updatedApplicationBuildPack(){
if ($this->application->build_pack !== 'nixpacks') {
$this->application->settings->is_static = $this->is_static = false;
$this->application->settings->save();
}
$this->submit();
}
public function instantSave()