Skip to content

i18n(zh-cn): Update cli-reference.mdx #11535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/content/docs/zh-cn/reference/cli-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ Flags

运行 Astro 的开发服务器。这是一个不打包资源的本地 HTTP 服务器。当你在编辑器中保存更改时,它使用热模块替换 (HMR) 来更新你的浏览器。

你可以在终端,也就是 Astro 开发服务器所运行的位置,使用以下的快捷键:

- `s + enter` 用以同步内容层(content layer)的数据(内容与类型)。
- `o + enter` 用以在浏览器中打开你的 Astro 网站。
- `q + enter` 用以退出开发服务器。

## `astro build`

构建你的网站以进行部署。默认情况下,这将生成静态文件并将它们放在 `dist/` 目录中。如果有任何路由是[按需渲染](/zh-cn/guides/on-demand-rendering/)的,这将生成必要的服务器文件为你的网站提供服务。
Expand Down