mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
chore: lolisafe.js
This commit is contained in:
parent
30e9227a78
commit
06178cc2c4
18
lolisafe.js
18
lolisafe.js
@ -189,16 +189,16 @@ if (config.cacheControl) {
|
||||
})
|
||||
}
|
||||
|
||||
// Static assets
|
||||
const serveLiveDirectoryPublicInstance = new ServeLiveDirectory(
|
||||
{ path: paths.public },
|
||||
{ setHeaders: setHeadersForStaticAssets }
|
||||
)
|
||||
// Init LiveDirectory middlewares for static assets
|
||||
// Static assets in /public directory
|
||||
const serveLiveDirectoryPublicInstance = new ServeLiveDirectory({ path: paths.public }, {
|
||||
setHeaders: setHeadersForStaticAssets
|
||||
})
|
||||
safe.use(serveLiveDirectoryPublicInstance.middleware)
|
||||
const serveLiveDirectoryDistInstance = new ServeLiveDirectory(
|
||||
{ path: paths.dist },
|
||||
{ setHeaders: setHeadersForStaticAssets }
|
||||
)
|
||||
// Static assets in /dist directory
|
||||
const serveLiveDirectoryDistInstance = new ServeLiveDirectory({ path: paths.dist }, {
|
||||
setHeaders: setHeadersForStaticAssets
|
||||
})
|
||||
safe.use(serveLiveDirectoryDistInstance.middleware)
|
||||
|
||||
// Routes
|
||||
|
Loading…
Reference in New Issue
Block a user