Skip to content

Commit

Permalink
Update webapp path creation
Browse files Browse the repository at this point in the history
  • Loading branch information
newmanw committed Sep 12, 2024
1 parent 409e9ac commit 63079db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,9 @@ async function initWebLayer(repos: Repositories, app: AppLayer, webUIPlugins: st
}
try {
const webappPackagePath = require.resolve('@ngageoint/mage.web-app/package.json')
const webappDir = path.dirname(webappPackagePath)
webController.use(express.static(webappDir + '/app'))
webController.use('/admin', express.static(webappDir + '/admin'))
const webAppPath = path.dirname(webappPackagePath)
webController.use(express.static(path.join(webAppPath, 'app')))
webController.use('/admin', express.static(path.join(webAppPath, 'admin')))
}
catch (err) {
console.warn('failed to load mage web app package', err)
Expand Down

0 comments on commit 63079db

Please sign in to comment.