docs: How to access base config in the app (#5482)

This commit is contained in:
Alvin Bryan 2022-12-08 17:20:00 +00:00 committed by GitHub
parent 9e6150cd14
commit 0fd4aaa906
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -432,6 +432,8 @@ export interface AstroUserConfig {
* @description * @description
* The base path to deploy to. Astro will build your pages and assets using this path as the root. Currently, this has no effect during development. * The base path to deploy to. Astro will build your pages and assets using this path as the root. Currently, this has no effect during development.
* *
* You can access this value in your app via `import.meta.env.BASE_URL`.
*
* ```js * ```js
* { * {
* base: '/docs' * base: '/docs'