Skip to content

Commit 27de822

Browse files
committed
update comment, json is no longer supported
1 parent b9d8419 commit 27de822

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/node/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export async function resolveConfig(
169169
return config
170170
}
171171

172-
export const supportedConfigExtensions = ['js', 'ts', 'mjs', 'mts']
172+
const supportedConfigExtensions = ['js', 'ts', 'mjs', 'mts']
173173

174174
export function isAdditionalConfigFile(path: string) {
175175
const filename_to_check = path.split('/').pop() ?? ''

src/node/siteConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export interface UserConfig<ThemeConfig = any>
194194

195195
/**
196196
* Multi-layer configuration overloading.
197-
* Auto-resolves to `docs/.../config.(ts|js|json)` when unspecified.
197+
* Auto-resolves to `docs/.../config.{js,mjs,ts,mts}` when unspecified.
198198
*
199199
* Set to `{}` to opt-out.
200200
*

0 commit comments

Comments
 (0)