mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-09 03:03:18 +00:00
fix(nitro): don't include current project's layer twice (#3785)
This commit is contained in:
parent
4b35915d6e
commit
73ee41cb58
@ -177,10 +177,7 @@ function startRollupWatcher (nitroContext: NitroContext) {
|
||||
async function _watch (nitroContext: NitroContext) {
|
||||
let watcher = startRollupWatcher(nitroContext)
|
||||
|
||||
const serverDirs = [
|
||||
...nitroContext._layers.map(layer => layer.serverDir),
|
||||
nitroContext._nuxt.serverDir
|
||||
]
|
||||
const serverDirs = nitroContext._layers.map(layer => layer.serverDir)
|
||||
|
||||
nitroContext.scannedMiddleware = (
|
||||
await Promise.all(serverDirs.map(async dir => await scanMiddleware(dir,
|
||||
|
Loading…
Reference in New Issue
Block a user