From 6bbd6c7d3de3df7ca11f4c38d7b86bc0d2cd1c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20L=C3=B3pez=20Dato?= Date: Mon, 28 Oct 2024 08:32:54 -0300 Subject: [PATCH] fix: Prevent newlines in environment variables from causing frontend syntax errors (#4750) --- frontend/api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/api/index.js b/frontend/api/index.js index 14150068d36e..0f5aceb97470 100755 --- a/frontend/api/index.js +++ b/frontend/api/index.js @@ -40,7 +40,7 @@ app.get('/config/project-overrides', (req, res) => { ` } - return ` ${name}: '${value}', + return ` ${name}: '${value.trim()}', ` } const envToBool = (name, defaultVal) => {