From 80427ea06a8f6f77fa62ee475d710fdd3e046e3b Mon Sep 17 00:00:00 2001 From: Eduardo Pereira Date: Wed, 1 May 2024 00:17:23 -0300 Subject: [PATCH] Add Steps component to `render.mdx` --- src/content/docs/en/guides/deploy/render.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/content/docs/en/guides/deploy/render.mdx b/src/content/docs/en/guides/deploy/render.mdx index 08079057533a6..16ef9278afba1 100644 --- a/src/content/docs/en/guides/deploy/render.mdx +++ b/src/content/docs/en/guides/deploy/render.mdx @@ -4,16 +4,23 @@ description: How to deploy your Astro site to the web using Render. type: deploy i18nReady: true --- +import { Steps } from '@astrojs/starlight/components'; You can deploy your Astro project to [Render](https://render.com/), a service to build websites with free TLS certificates, a global CDN, DDoS protection, private networks, and auto deploys from Git. ## How to deploy + 1. Create a [render.com account](https://dashboard.render.com/) and sign in + 2. Click the **New +** button from your dashboard and select **Static Site** + 3. Connect your [GitHub](https://github.com/) or [GitLab](https://about.gitlab.com/) repository or alternatively enter the public URL of a public repository + 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 `18.14.1` 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 +