fix: build serve
This commit is contained in:
parent
c24adc47a8
commit
946a06e78a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user