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 still holds the theme’s demo 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 demo address, so nothing reminds you. A SITE_URL environment variable overrides it for a build.

Use Node.js 22.12.0 or later, as listed under engines in package.json. The Sanity edition needs 22.23.4 or later, and the Tina edition needs Node.js 22 or 24.

Then go through this list:

  • Business info: contactInfo and footerBlock in src/i18n/<lang>.json, in every language, and brandName in config.toml.
  • Forms: contactFormAction and contactFormProvider for the contact form, and formAction in [settings.subscription] for the Mailchimp newsletter. Both ship with placeholders, and nothing warns about them.
  • Analytics: add your tags to content in [head] in config.toml.
  • Sample content: replace the sample prices, reviews, figures, team members, integrations, changelog entries, blog posts, and photos, plus each page’s metaDescription and the phone screenshots in the images. Some text is a placeholder, such as the English changelog and the integration pages.
  • Footer: the sample footer menu links in menu.<lang>.json mostly point at /. Set them to your own pages. The app store buttons are [[settings.downloadButtons]] in config.toml.
  • Identity: title, tagline, and description in [site], keywords and author in [seo], and image in [opengraph]. Other languages take the tagline and description from common.siteTagline and common.siteDescription in src/i18n/<lang>.json.
  • Legal pages: replace the placeholder privacy policy and terms in src/content/pages/<language>/. The components page in the same folder is a showcase, so remove it and its menu item if you don’t want it on your site.
  • Branding: logo, favicons, colors, and fonts. See Site Identity & Logo and Fonts & Colors.

In the Tina edition, most of these are in /admin/. In the Sanity edition, they are in the Studio, under Site settings, 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.

If you add or remove a language, add or remove its block in netlify.toml by hand. The language scripts don’t change this file. See Internationalization.

Vercel

The included vercel.json sets the trailing slash and the sitemap redirect. The included vercel.sh script builds your site with your Vercel project’s address, 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 in package.json.

The included wrangler.toml names the project finzo-astro, so change its name to your project if you deploy with Wrangler.

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, PUBLIC_SANITY_DATASET, and PUBLIC_SANITY_STUDIO_URL. 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...