fix: build serve

This commit is contained in:
cha0s 2024-09-17 17:48:12 -05:00
parent c24adc47a8
commit 946a06e78a

View File

@ -83,6 +83,9 @@ else {
'/assets',
express.static('build/client/assets', { immutable: true, maxAge: '1y' })
);
// Everything else (like favicon.ico) is cached for an hour. You may want to be
// more aggressive with this caching.
app.use(express.static('build/client', { maxAge: '1h' }));
}
// silphius resources
@ -91,10 +94,6 @@ app.use(
express.static('resources', { maxAge: '1h' }),
);
// Everything else (like favicon.ico) is cached for an hour. You may want to be
// more aggressive with this caching.
app.use(express.static('build/client', { maxAge: '1h' }));
app.use(morgan('tiny'));
// handle SSR requests