cache-busting for radar worker

This commit is contained in:
Matt Walsh 2025-06-12 12:14:56 -05:00
commit 1dece10679
No known key found for this signature in database
5 changed files with 29 additions and 4 deletions

View file

@ -71,11 +71,15 @@ const geoip = (req, res) => {
// debugging
if (process.env?.DIST === '1') {
// distribution
app.use('/scripts', express.static('./server/scripts'));
app.use('/geoip', geoip);
app.use('/', express.static('./dist'));
} else {
// debugging
app.get('/index.html', index);
app.use('/geoip', geoip);
app.use('/resources', express.static('./server/scripts/modules'));
app.get('/', index);
app.get('*name', express.static('./server'));
// cors pass-thru to api.weather.gov