fix(nuxt): default nitro autoImports to imports.autoImport (#20180)

This commit is contained in:
Harlan Wilton 2023-04-11 01:11:07 +07:00 committed by GitHub
parent ee0b366b44
commit 33f3ae4963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
dev: nuxt.options.dev,
buildDir: nuxt.options.buildDir,
imports: {
autoImports: nuxt.options.imports.autoImport,
imports: [
{
as: '__buildAssetsURL',