mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(nuxt): pass fully resolved path to nitro dist files (#7494)
This commit is contained in:
parent
4d91ededb1
commit
5855ba4684
@ -70,7 +70,8 @@ export async function initNitro (nuxt: Nuxt) {
|
|||||||
nuxt.options.buildDir
|
nuxt.options.buildDir
|
||||||
]),
|
]),
|
||||||
'nuxt/dist',
|
'nuxt/dist',
|
||||||
'nuxt3/dist'
|
'nuxt3/dist',
|
||||||
|
distDir
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
alias: {
|
alias: {
|
||||||
|
@ -72,8 +72,8 @@ export async function buildServer (ctx: ViteBuildContext) {
|
|||||||
/\.(es|esm|esm-browser|esm-bundler).js$/,
|
/\.(es|esm|esm-browser|esm-bundler).js$/,
|
||||||
'/__vue-jsx',
|
'/__vue-jsx',
|
||||||
'#app',
|
'#app',
|
||||||
/(nuxt|nuxt3)\/(dist|src|app)/,
|
/^nuxt(\/|$)/,
|
||||||
/@nuxt\/nitro\/(dist|src)/
|
/(nuxt|nuxt3)\/(dist|src|app)/
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
Loading…
Reference in New Issue
Block a user