mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11: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
|
// Init LiveDirectory middlewares for static assets
|
||||||
const serveLiveDirectoryPublicInstance = new ServeLiveDirectory(
|
// Static assets in /public directory
|
||||||
{ path: paths.public },
|
const serveLiveDirectoryPublicInstance = new ServeLiveDirectory({ path: paths.public }, {
|
||||||
{ setHeaders: setHeadersForStaticAssets }
|
setHeaders: setHeadersForStaticAssets
|
||||||
)
|
})
|
||||||
safe.use(serveLiveDirectoryPublicInstance.middleware)
|
safe.use(serveLiveDirectoryPublicInstance.middleware)
|
||||||
const serveLiveDirectoryDistInstance = new ServeLiveDirectory(
|
// Static assets in /dist directory
|
||||||
{ path: paths.dist },
|
const serveLiveDirectoryDistInstance = new ServeLiveDirectory({ path: paths.dist }, {
|
||||||
{ setHeaders: setHeadersForStaticAssets }
|
setHeaders: setHeadersForStaticAssets
|
||||||
)
|
})
|
||||||
safe.use(serveLiveDirectoryDistInstance.middleware)
|
safe.use(serveLiveDirectoryDistInstance.middleware)
|
||||||
|
|
||||||
// Routes
|
// Routes
|
||||||
|
Loading…
Reference in New Issue
Block a user