docs: update config extensions

pull/2737/head
Divyansh Singh 3 years ago
parent 5cb720dae8
commit d38e4a46e2

@ -10,7 +10,7 @@ Site config is where you can define the global settings of the site. App config
### Config Resolution ### Config Resolution
The config file is always resolved from `<root>/.vitepress/config.[ext]`, where `<root>` is your VitePress [project root](../guide/routing#root-and-source-directory), and `[ext]` is one of the supported file extensions. TypeScript is supported out of the box. Supported extensions include `.js`, `.ts`, `.cjs`, `.mjs`, `.cts`, and `.mts`. The config file is always resolved from `<root>/.vitepress/config.[ext]`, where `<root>` is your VitePress [project root](../guide/routing#root-and-source-directory), and `[ext]` is one of the supported file extensions. TypeScript is supported out of the box. Supported extensions include `.js`, `.ts`, `.mjs`, and `.mts`.
It is recommended to use ES modules syntax in config files. The config file should default export an object: It is recommended to use ES modules syntax in config files. The config file should default export an object:

Loading…
Cancel
Save