Skip to content
New: Customize your theme with an AI assistant. Read the guide

Deployment Guide

npm run build makes a static site in the dist/ folder, which any static host can serve. Settings are included for Netlify, Vercel, and Cloudflare Pages. To use another host, see Astro’s deployment guides.

Before You Deploy

Set your site’s address in baseUrl under [site] in src/config/config.toml. It ships with the theme demo’s address, and canonical links, the sitemap, robots.txt, llms.txt, and social previews use it. The build warns only about a placeholder such as example.com, not about this address, so nothing reminds you. A SITE_URL environment variable overrides baseUrl for a build.

Use the Node.js version for your edition: 22.12.0 or later for Astro, 22 (22.12.0 or later) or 24 for Tina, and 22.23.4 or later for Sanity. engines in package.json lists it.

Then go through this list:

  • Contact details: replace the sample contact list in src/content/sections/<language>/contact-section.md, and set [settings.contactInfo] in config.toml.
  • Forms: contactFormAction and contactFormProvider for the contact form, and formAction in [settings.subscription] for the Mailchimp subscribe form. Both ship with placeholder addresses, and nothing warns you about them.
  • Analytics: add your tags to content in [head] in config.toml. The theme has no cookie banner, so add your own if your tags need consent.
  • Sample content: replace the sample prices, rating and review count in the call to action, testimonials, customer logos, integrations, changelog entries, FAQ, author, blog posts, and photos. Rewrite the metaDescription of each page, because the ones that ship describe this sample site.
  • Identity: title, tagline, and description in [site], and author and keywords in [seo]. In other languages, common.siteTagline and common.siteDescription in src/i18n/<lang>.json replace them.
  • Legal pages: replace the placeholder privacy policy and terms in src/content/pages/<language>/. If you don’t want the elements page, delete elements.mdx there and remove Elements from the menu, in every language.
  • Branding: logo, favicons, the social sharing image (image in [opengraph]), colors, and fonts. See Site Identity & Logo and Fonts & Colors.

In the Tina edition, you can do all of this at /admin/, except the favicons and the colors and fonts. In the Sanity edition, it is in the Studio, under Site settings, Sections, Interface labels, Menus, and Other pages.

Netlify

The included netlify.toml sets the build command (npm run build), the dist folder, Node.js 22, cache headers, and a “page not found” rule for French and Arabic.

  1. Create a new site on Netlify.
  2. Connect your Git repository.
  3. Netlify reads its settings from netlify.toml and deploys your site.

In every edition, npm run generate-multilingual-content adds the new language’s rule to netlify.toml, and npm run remove-multilingual takes out the rules of the languages it removes.

Vercel

The included vercel.json sets the build command, the trailing slash, and the sitemap redirect. The included vercel.sh script builds your site with your Vercel project’s production domain as SITE_URL, which overrides baseUrl.

  1. Create a new project on Vercel.
  2. Connect your Git repository.
  3. Vercel reads its settings from vercel.json and deploys your site.

Cloudflare Pages

  1. Create a new project on Cloudflare Pages.
  2. Connect your Git repository.
  3. Set the build command to npm run build and the output folder to dist.
  4. Set the Node.js version with a NODE_VERSION environment variable, using the version for your edition.

The included wrangler.toml names the project upstart-astro, so change its name to your project if you deploy with Wrangler. It also sets NODE_VERSION for your edition: 22.13.1, or 22.23.4 in the Sanity edition.

Headers And Missing Pages

The included public/_headers, vercel.json, and public/.htaccess serve the .md and llms files as text, and keep the .md copies out of search results. On any other host, set the same headers yourself. See AI Links & llms.

Only netlify.toml includes a “page not found” rule for each language. On other hosts, a missing /fr/ or /ar/ address may show the default language’s 404 page unless you add a rule.

Tina Edition

The site builds and works with no account and no variables. With none, /admin/ on the live site is a short page saying online editing is not connected. To edit online, add PUBLIC_TINA_CLIENT_ID and TINA_TOKEN to your host. See Tina.

Sanity Edition

Give your host PUBLIC_SANITY_PROJECT_ID and PUBLIC_SANITY_DATASET. Without a project ID, the site builds from the bundled demo content. The site must rebuild to show content you publish. In this edition, set your site’s address under Site settings > Site > Base URL. See Sanity.

Type something to search...