Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.43 KB

render.mdx

File metadata and controls

26 lines (19 loc) · 1.43 KB
title description type i18nReady
Deploy your Astro Site to Render
How to deploy your Astro site to the web using Render.
deploy
true

import { Steps } from '@astrojs/starlight/components';

You can deploy your Astro project to Render, 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
  1. Click the New + button from your dashboard and select Static Site

  2. Connect your GitHub or GitLab repository or alternatively enter the public URL of a public repository

  3. 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. 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 or .nvmrc file to your project to specify a Node.js version.
  4. Click the Create Static Site button