mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(kit): normalise serverDir
within layers using v4 compat (#28177)
This commit is contained in:
parent
6720a2eab1
commit
6abaae7fa1
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user