mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
chore: init dist static assets before public
This commit is contained in:
parent
2389974c7d
commit
a6e1943655
10
lolisafe.js
10
lolisafe.js
@ -192,16 +192,16 @@ if (config.cacheControl) {
|
||||
}
|
||||
|
||||
// Init ServeStaticQuick middlewares for static assets
|
||||
// Static assets in /public directory
|
||||
const serveStaticQuickPublicInstance = new ServeStaticQuick(paths.public, {
|
||||
setHeaders: setHeadersForStaticAssets
|
||||
})
|
||||
safe.use(serveStaticQuickPublicInstance.middleware)
|
||||
// Static assets in /dist directory
|
||||
const serveStaticQuickDistInstance = new ServeStaticQuick(paths.dist, {
|
||||
setHeaders: setHeadersForStaticAssets
|
||||
})
|
||||
safe.use(serveStaticQuickDistInstance.middleware)
|
||||
// Static assets in /public directory
|
||||
const serveStaticQuickPublicInstance = new ServeStaticQuick(paths.public, {
|
||||
setHeaders: setHeadersForStaticAssets
|
||||
})
|
||||
safe.use(serveStaticQuickPublicInstance.middleware)
|
||||
|
||||
// Routes
|
||||
safe.use(album)
|
||||
|
Loading…
Reference in New Issue
Block a user