m2d - #1644
Merged
Merged
Conversation
docs: sync `configLoader` desc
docs: translate ".env Files" to ".env 文件".
docs: fix punctuation and formatting in build.md
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Chinese documentation to reflect the expanded --configLoader CLI option set and to improve consistency/clarity in wording and punctuation across the guides.
Changes:
- Document
native(experimental) as an additional--configLoaderoption in the CLI guide. - Fix Chinese punctuation in the public base path section of the build guide.
- Localize a related-link label in the JavaScript API guide from English to Chinese.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| guide/cli.md | Updates the --configLoader option description to include native (experimental) loading. |
| guide/build.md | Adjusts punctuation in the base path documentation (with a minor terminology consistency note). |
| guide/api-javascript.md | Localizes “.env Files” link text to “.env 文件”. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 由 JS 引入的资源 URL,CSS 中的 `url()` 引用以及 `.html` 文件中引用的资源在构建过程中都会自动调整,以适配此选项。 | ||
|
|
||
| 当然,情况也有例外,当访问过程中需要使用动态连接的 url 时,可以使用全局注入的 `import.meta.env.BASE_URL` 变量,它的值为公共基础路径。注意,这个变量在构建时会被静态替换,因此,它必须按 `import.meta.env.BASE_URL` 的原样出现(例如 `import.meta.env['BASE_URL']` 是无效的) | ||
| 当然,情况也有例外,当访问过程中需要使用动态连接的 url 时,可以使用全局注入的 `import.meta.env.BASE_URL` 变量,它的值为公共基础路径。注意,这个变量在构建时会被静态替换,因此,它必须按 `import.meta.env.BASE_URL` 的原样出现(例如 `import.meta.env['BASE_URL']` 是无效的)。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.