fix(kit): normalise serverDir within layers using v4 compat (#28177)

This commit is contained in:
Daniel Roe 2024-07-16 15:12:45 +01:00 committed by GitHub
parent 874829434d
commit afa84b31d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ export interface LoadNuxtConfigOptions extends Omit<LoadConfigOptions<NuxtConfig
overrides?: Exclude<LoadConfigOptions<NuxtConfig>['overrides'], Promise<any> | Function> overrides?: Exclude<LoadConfigOptions<NuxtConfig>['overrides'], Promise<any> | Function>
} }
const layerSchemaKeys = ['future', 'srcDir', 'rootDir', 'dir'] const layerSchemaKeys = ['future', 'srcDir', 'rootDir', 'serverDir', 'dir']
const layerSchema = Object.create(null) const layerSchema = Object.create(null)
for (const key of layerSchemaKeys) { for (const key of layerSchemaKeys) {
if (key in NuxtConfigSchema) { if (key in NuxtConfigSchema) {