0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

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'