docs: How to access base config in the app (#5482)
This commit is contained in:
parent
9e6150cd14
commit
0fd4aaa906
1 changed files with 2 additions and 0 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue