Skip to content

Commit

Permalink
i18n(zh-cn): Update content about upstream withastro#8233 (withastro#…
Browse files Browse the repository at this point in the history
  • Loading branch information
huyikai authored and wpplumber committed May 15, 2024
1 parent 4e4ab6b commit ac03b99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/deploy/netlify.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ npx astro add netlify
### 设置 Node.js 版本
如果你在 Netlify 上使用的是旧版的 [构建镜像](https://docs.netlify.com/configure-builds/get-started/#build-image-selection)(Xenial),请确保你已经设置了 Node.js 的版本。Astro 需要 v18.14.1 或更高版本。
如果你在 Netlify 上使用的是旧版的 [构建镜像](https://docs.netlify.com/configure-builds/get-started/#build-image-selection)(Xenial),请确保你已经设置了 Node.js 的版本。Astro 需要 `v18.17.1` 或 `v20.3.0` 或更高版本。
你可以使用下面的方法在 [Netlify 中指定 Node.js 版本](https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascript):
- 在你的项目根目录中存放一个 [`.nvmrc`](https://github.com/nvm-sh/nvm#nvmrc) 文件
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/deploy/render.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Steps } from '@astrojs/starlight/components';
4. 为你的网站取一个名称,选择分支,并指定构建命令和发布目录:
- **构建命令:** `npm run build`
- **发布目录:** `dist`
- **环境变量(高级):** Render 默认使用 Node.js 14.17.0,但 Astro [需要更高版本](/zh-cn/install/auto/#前提准备)。添加一个名为 `NODE_VERSION` 的环境变量,值为 `18.14.1` 或更高版本,告诉 Render 使用兼容的 Node.js 版本。或者,向项目添加一个 [`.node-version`](https://render.com/docs/node-version)[`.nvmrc`](https://render.com/docs/node-version) 文件来指定一个 Node.js 版本。
- **环境变量(高级):** Render 默认使用 Node.js 14.17.0,但 Astro [需要更高版本](/zh-cn/install/auto/#前提准备)。添加一个名为 `NODE_VERSION` 的环境变量,值为 `v18.17.1``v20.3.0` 或更高版本,告诉 Render 使用兼容的 Node.js 版本。或者,向项目添加一个 [`.node-version`](https://render.com/docs/node-version)[`.nvmrc`](https://render.com/docs/node-version) 文件来指定一个 Node.js 版本。

5. 点击 **Create Static Site** 按钮。
</Steps>

0 comments on commit ac03b99

Please sign in to comment.