Skip to content

Commit 7211246

Browse files
committed
fix: move /en/config.ts to /config.ts, allow root-level configuration overloading
1 parent 0fcb916 commit 7211246

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed
File renamed without changes.

src/client/app/data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function getConfigLayers(root: SiteData, path: string): SiteData[] {
9999
if (key in additionalConfig) configs.push(additionalConfig[key] as SiteData)
100100
segments.pop()
101101
}
102+
if ('/' in additionalConfig) configs.push(additionalConfig['/'] as SiteData)
102103
return [...configs, root]
103104
}
104105

0 commit comments

Comments
 (0)