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: envs with special chars during build

Andras Bacsaie83164e537b8
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index 37c73d10fb..c25325ad44 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -2287,7 +2287,10 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");
private function generate_build_env_variables()
{
$variables = collect($this->nixpacks_plan_json->get('variables'));
+
$this->build_args = $variables->map(function ($value, $key) {
+ $value = escapeshellarg($value);
+
return "--build-arg {$key}={$value}";
});
}