Merge pull request #185 from rmitchellscott/music-dist-1
fix: correctly use music mount when DIST=1. Fixes #174
This commit is contained in:
commit
39bafae394
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ if (process.env?.DIST === '1') {
|
|||
// 'npm run build' and then 'DIST=1 npm start'
|
||||
app.use('/scripts', express.static('./server/scripts', staticOptions));
|
||||
app.use('/geoip', geoip);
|
||||
app.use('/music', express.static('./server/music', staticOptions));
|
||||
|
||||
// render the EJS template in production mode (serve compressed files from dist directory)
|
||||
app.get('/', (req, res) => { renderIndex(req, res, true); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue