mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(bridge): handle static nested vite dirs (#3565)
This commit is contained in:
parent
40d325e5c5
commit
ef38147e52
@ -71,7 +71,7 @@ export function setupNitroBridge () {
|
||||
})
|
||||
}
|
||||
|
||||
nuxt.hook('nitro:generate', async () => {
|
||||
async function updateViteBase () {
|
||||
const clientDist = resolve(nuxt.options.buildDir, 'dist/client')
|
||||
|
||||
// Remove public files that have been duplicated into buildAssetsDir
|
||||
@ -97,7 +97,9 @@ export function setupNitroBridge () {
|
||||
await fse.remove(nestedAssetsPath)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
nuxt.hook('nitro:generate', updateViteBase)
|
||||
nuxt.hook('generate:before', updateViteBase)
|
||||
|
||||
// Expose process.env.NITRO_PRESET
|
||||
nuxt.options.env.NITRO_PRESET = nitroContext.preset
|
||||
|
Loading…
Reference in New Issue
Block a user