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

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)