Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: preview deployments with nixpacks

Andras Bacsaia2f53085e58c
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index 9043446a06..e846f9f610 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -738,9 +738,12 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
$this->generate_nixpacks_confs();
}
$this->generate_compose_file();
+
// Needs separate preview variables
$this->generate_build_env_variables();
- $this->add_build_env_variables_to_dockerfile();
+ if ($this->application->build_pack !== 'nixpacks') {
+ $this->add_build_env_variables_to_dockerfile();
+ }
$this->build_image();
$this->stop_running_container();
if ($this->application->destination->server->isSwarm()) {