mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-14 07:39:29 -07:00
Merge pull request #185 from rmitchellscott/music-dist-1
fix: correctly use music mount when DIST=1. Fixes #174
This commit is contained in:
@@ -158,6 +158,7 @@ if (process.env?.DIST === '1') {
|
|||||||
// 'npm run build' and then 'DIST=1 npm start'
|
// 'npm run build' and then 'DIST=1 npm start'
|
||||||
app.use('/scripts', express.static('./server/scripts', staticOptions));
|
app.use('/scripts', express.static('./server/scripts', staticOptions));
|
||||||
app.use('/geoip', geoip);
|
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)
|
// render the EJS template in production mode (serve compressed files from dist directory)
|
||||||
app.get('/', (req, res) => { renderIndex(req, res, true); });
|
app.get('/', (req, res) => { renderIndex(req, res, true); });
|
||||||
|
|||||||
Reference in New Issue
Block a user