diff --git a/packages/kit/src/loader/config.ts b/packages/kit/src/loader/config.ts index 8e2c1354a9..b0c2c04f67 100644 --- a/packages/kit/src/loader/config.ts +++ b/packages/kit/src/loader/config.ts @@ -11,7 +11,7 @@ export interface LoadNuxtConfigOptions extends Omit['overrides'], Promise | Function> } -const layerSchemaKeys = ['future', 'srcDir', 'rootDir', 'dir'] +const layerSchemaKeys = ['future', 'srcDir', 'rootDir', 'serverDir', 'dir'] const layerSchema = Object.create(null) for (const key of layerSchemaKeys) { if (key in NuxtConfigSchema) {