Skip to content

Commit

Permalink
Add /static/run/hosted path to AssetServer
Browse files Browse the repository at this point in the history
  • Loading branch information
john0312 committed Oct 24, 2021
1 parent b2e2187 commit 8062da5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/assets/asset-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class AssetServer {
this.app.use('/static/sites', express.static(path.resolve(__dirname, '../../sites/')));
this.app.use('/static/common', express.static(path.resolve(__dirname, '../../common/')));
this.app.use('/static/run/map', express.static(getRunPath('map')));
this.app.use('/static/run/hosted', express.static(getRunPath('hosted')));
for (const extName of this.extMan.listExtensions()) {
this.app.use(`/static/extensions/${extName}/common`,
express.static(path.resolve(__dirname, `../../extensions/${extName}/common`)));
Expand Down

0 comments on commit 8062da5

Please sign in to comment.