mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +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
|
// 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
|
// Static assets in /dist directory
|
||||||
const serveStaticQuickDistInstance = new ServeStaticQuick(paths.dist, {
|
const serveStaticQuickDistInstance = new ServeStaticQuick(paths.dist, {
|
||||||
setHeaders: setHeadersForStaticAssets
|
setHeaders: setHeadersForStaticAssets
|
||||||
})
|
})
|
||||||
safe.use(serveStaticQuickDistInstance.middleware)
|
safe.use(serveStaticQuickDistInstance.middleware)
|
||||||
|
// Static assets in /public directory
|
||||||
|
const serveStaticQuickPublicInstance = new ServeStaticQuick(paths.public, {
|
||||||
|
setHeaders: setHeadersForStaticAssets
|
||||||
|
})
|
||||||
|
safe.use(serveStaticQuickPublicInstance.middleware)
|
||||||
|
|
||||||
// Routes
|
// Routes
|
||||||
safe.use(album)
|
safe.use(album)
|
||||||
|
Loading…
Reference in New Issue
Block a user