Merge pull request #185 from rmitchellscott/music-dist-1

fix: correctly use music mount when DIST=1. Fixes #174
This commit is contained in:
Matt Walsh
2026-02-17 11:53:04 -06:00
committed by GitHub

View File

@@ -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); });