Update packages/astro/src/@types/astro.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This commit is contained in:
Emanuele Stoppa 2023-10-09 17:15:19 +01:00 committed by GitHub
parent bc620fd7cb
commit 18317dcc52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -586,7 +586,7 @@ export interface AstroUserConfig {
* *
* Additionally, Astro will internally manipulate the configured value of `config.base` before making it available to integrations. The value of `config.base` as read by integrations will also be determined by your `trailingSlash` configuration in the same way. * Additionally, Astro will internally manipulate the configured value of `config.base` before making it available to integrations. The value of `config.base` as read by integrations will also be determined by your `trailingSlash` configuration in the same way.
* *
* This means with a configuration like this: * In the example below, the values of `import.meta.env.BASE_URL` and `config.base` when processed will both be `/docs`:
* ```js * ```js
* { * {
* base: '/docs/', * base: '/docs/',
@ -594,9 +594,7 @@ export interface AstroUserConfig {
* } * }
* ``` * ```
* *
* `import.meta.env.BASE_URL` and `config.base` will be `/docs`. * In the example below, the values of `import.meta.env.BASE_URL` and `config.base` when processed will both be `/docs/`:
*
* In a configuration like this:
* *
* ```js * ```js
* { * {
@ -604,8 +602,6 @@ export interface AstroUserConfig {
* trailingSlash: "always" * trailingSlash: "always"
* } * }
* ``` * ```
*
* `import.meta.env.BASE_URL` and `config.base` will be `/docs/`.
*/ */
base?: string; base?: string;