Update config base type description (#4954)
This commit is contained in:
parent
c733d4fb81
commit
911c1d315c
1 changed files with 10 additions and 1 deletions
|
@ -426,6 +426,15 @@ export interface AstroUserConfig {
|
|||
* base: '/docs'
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* When using this option, you should mind that all of your imports will be affected. In this example, all of the imports including static resources and codes should add a prefix `/docs/`.
|
||||
*
|
||||
* For example, if you want to use a image in your Astro component, you need to change it from '/someimg.png' into '/docs/someimg.png'.
|
||||
*
|
||||
* ```astro
|
||||
* <!-- <img src="/someimg.png"> is not correct. -->
|
||||
* <img src="/docs/someimg.png">
|
||||
* ```
|
||||
*/
|
||||
base?: string;
|
||||
|
||||
|
|
Loading…
Reference in a new issue