fix docs on config api
This commit is contained in:
parent
69272dc8d1
commit
2538325a46
1 changed files with 11 additions and 7 deletions
|
@ -5,17 +5,21 @@ title: Configuration Reference
|
||||||
|
|
||||||
To configure Astro, add an `astro.config.mjs` file in the root of your project. All settings are optional.
|
To configure Astro, add an `astro.config.mjs` file in the root of your project. All settings are optional.
|
||||||
|
|
||||||
You can view the full configuration API (including information about default configuration) on GitHub: https://github.com/snowpackjs/astro/blob/latest/packages/astro/src/@types/config.ts
|
You can view the full configuration API (including information about default configuration) on [GitHub.](https://github.com/snowpackjs/astro/blob/latest/packages/astro/src/@types/config.ts)
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Example: astro.config.mjs
|
// Example: astro.config.mjs
|
||||||
|
|
||||||
/** @type {import('astro').AstroUserConfig} */
|
// @type-check enabled!
|
||||||
export default {
|
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
|
||||||
buildOptions: {
|
// helpful tooltips, and warnings if your exported object is invalid.
|
||||||
site: 'https://example.com',
|
// You can disable this by removing "@ts-check" and `@type` comments below.
|
||||||
},
|
|
||||||
};
|
// @ts-check
|
||||||
|
export default /** @type {import('astro').AstroUserConfig} */ ({
|
||||||
|
// ...
|
||||||
|
});
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Snowpack Config
|
## Snowpack Config
|
||||||
|
|
Loading…
Reference in a new issue