From c339f4f67dbcb9ef77f4d8c6fe47ff781984e43c Mon Sep 17 00:00:00 2001 From: HiDeoo <494699+HiDeoo@users.noreply.github.com> Date: Fri, 27 Jan 2023 14:43:26 +0100 Subject: [PATCH] Update Render deploy guide with Astro 2.0 Node.js version requirement --- src/pages/en/guides/deploy/render.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/en/guides/deploy/render.mdx b/src/pages/en/guides/deploy/render.mdx index 0fb22541617cb..d0fd5876d9cb0 100644 --- a/src/pages/en/guides/deploy/render.mdx +++ b/src/pages/en/guides/deploy/render.mdx @@ -15,4 +15,5 @@ You can deploy your Astro project to [Render](https://render.com/), a service to 4. Give your website a name, select the branch and specify the build command and publish directory - **build command:** `npm run build` - **publish directory:** `dist` + - **Environment variables (advanced)**: By default, Render uses Node.js 14.17.0, but Astro [requires a higher version](/en/install/auto/#prerequisites). Add an environment variable with a **Variable key** of `NODE_VERSION` and a **Value** of `16.12.0` or higher to tell Render to use a compatible Node.js version. Alternatively, add a [`.node-version`](https://render.com/docs/node-version) or [`.nvmrc`](https://render.com/docs/node-version) file to your project to specify a Node.js version. 5. Click the **Create Static Site** button