Skip to content

Commit 1614c07

Browse files
authored
Merge pull request #5317 from FlowFuse/fix-npmrc-device
Fix npmrc settings merge
2 parents 8a896c4 + 45c8b9a commit 1614c07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

forge/routes/api/deviceLive.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ module.exports = async function (app) {
262262
response.palette = {}
263263
}
264264
if (response.palette.npmrc) {
265-
settings.palette.npmrc = `${settings.settings.palette.npmrc}\n` +
265+
settings.palette = settings.palette || {}
266+
settings.palette.npmrc = `${settings.palette.npmrc || ''}\n` +
266267
`@flowfuse-${team}:registry=${app.config.npmRegistry.url}\n` +
267268
`//${npmRegURL.host}:_auth="${token}"\n`
268269
} else {

0 commit comments

Comments
 (0)