Skip to content

Commit

Permalink
fix: Prevent newlines in environment variables from causing frontend …
Browse files Browse the repository at this point in the history
…syntax errors (#4750)
  • Loading branch information
rolodato authored Oct 28, 2024
1 parent 282d82f commit 6bbd6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ app.get('/config/project-overrides', (req, res) => {
`
}

return ` ${name}: '${value}',
return ` ${name}: '${value.trim()}',
`
}
const envToBool = (name, defaultVal) => {
Expand Down

0 comments on commit 6bbd6c7

Please sign in to comment.