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
commit 39bafae394
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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