Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Aug 27, 2024
1 parent dc12803 commit a01a630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/runtimeSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function getSettingsFile (settings) {
projectSettings.uibuilder = { uibRoot }
}

if (settings.settings.httpStatic) {
if (settings.settings?.httpStatic) {
// This is an array of httpStatic properties - however their path setting
// will currently be relative to cwd. For safety, map them to absolute paths
// and validate they are not traversing out of the storageDir
Expand Down Expand Up @@ -374,7 +374,7 @@ module.exports = {
next()
},
httpAdminCookieOptions: ${JSON.stringify(httpAdminCookieOptions)},
${projectSettings.uibuilder ? 'uibuilder: ' + JSON.stringify(projectSettings.uibuilder) : ''},
${projectSettings.uibuilder ? 'uibuilder: ' + JSON.stringify(projectSettings.uibuilder) + ',' : ''}
${projectSettings.httpStatic ? 'httpStatic: ' + JSON.stringify(projectSettings.httpStatic) : ''}
}
`
Expand Down

0 comments on commit a01a630

Please sign in to comment.