fix: conflict old pr

This commit is contained in:
Ricardo Gobbo de Souza 2018-02-05 12:54:36 -02:00
parent e9e673b8e1
commit 6f073d7093
1 changed files with 3 additions and 5 deletions

View File

@ -249,11 +249,9 @@ module.exports = class Renderer {
}
// For serving static/ files to /
this.useMiddleware(
serveStatic(
resolve(this.options.srcDir, this.options.dir.static),
this.options.render.static
)
const staticMiddleware = serveStatic(
resolve(this.options.srcDir, this.options.dir.static),
this.options.render.static
)
staticMiddleware.prefix = this.options.render.static.prefix
this.useMiddleware(staticMiddleware)