mirror of https://github.com/nuxt/nuxt.git
fix: conflict old pr
This commit is contained in:
parent
e9e673b8e1
commit
6f073d7093
|
@ -249,12 +249,10 @@ module.exports = class Renderer {
|
|||
}
|
||||
|
||||
// For serving static/ files to /
|
||||
this.useMiddleware(
|
||||
serveStatic(
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue