fix: correctly use music mount when DIST=1. Fixes #174

This commit is contained in:
Mitchell Scott
2026-02-17 07:34:06 -07:00
parent 0a794eae36
commit ec8fffbb64

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