mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
[ci] format
This commit is contained in:
parent
911c1d315c
commit
f878dd6f19
1 changed files with 4 additions and 4 deletions
|
@ -420,17 +420,17 @@ export interface AstroUserConfig {
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @description
|
* @description
|
||||||
* The base path you're deploying to. Astro will match this pathname during development so that your development experience matches your build environment as closely as possible. In the example below, `astro dev` will start your server at `/docs`.
|
* The base path you're deploying to. Astro will match this pathname during development so that your development experience matches your build environment as closely as possible. In the example below, `astro dev` will start your server at `/docs`.
|
||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* {
|
* {
|
||||||
* base: '/docs'
|
* 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/`.
|
* 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'.
|
* 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
|
* ```astro
|
||||||
* <!-- <img src="/someimg.png"> is not correct. -->
|
* <!-- <img src="/someimg.png"> is not correct. -->
|
||||||
* <img src="/docs/someimg.png">
|
* <img src="/docs/someimg.png">
|
||||||
|
|
Loading…
Add table
Reference in a new issue