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.
npm cinpm run buildThe build regenerates .astro/config.generated.json, runs Astro, removes draft URLs from the sitemap, and writes the deployable output to dist/.
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 Open Graph URLs 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 baseUrl for a build.
Use the Node.js version your edition asks for, as listed under engines in package.json: 22.12.0 or later in the Astro and Sanity editions, and 22.23.4 or later on 22, or 24, in the Tina edition.
Then go through this list:
- Business info:
[settings.contactInfo]inconfig.toml, the offices insrc/content/contact/<language>/-index.md, and the footer copy (footer.description,footer.copyright) insrc/i18n/<lang>.json. Replacepublic/company-desk.pdf, or setcompanyDeskinconfig.tomlto your own file. - Forms:
contactFormActionandcontactFormProviderinconfig.toml. Until you set them, the contact form shows a message and sends nothing. See Contact Forms. - Analytics: add your tags to
[head]inconfig.toml. - Sample content: replace the sample services, industries, projects, case studies, prices, reviews, figures, awards, team members, roles, blog posts, and photos. Check the page descriptions and
src/i18n/<lang>.jsonfor the word Veltro. - Identity:
title,tagline,description, andlogoTextin[site], andauthorandkeywordsin[seo]. The tagline is added to page titles, and the description is the default meta description. Replace/images/og-image.jpg, the image used when a page is shared. - Legal pages: replace the placeholder privacy policy and terms in
src/content/pages/<language>/. - Branding: logo, favicons, colors, and fonts. See Site Identity & Logo and Fonts & Colors.
In the Tina edition, most of these have forms at /admin/. In the Sanity edition, they are in the Studio, under Site settings, Interface labels, Menus, and Other pages.
Then run npm run astro-check and npm run build one after the other, and test canonical URLs, /sitemap-index.xml, /robots.txt, translated routes, navigation, and every enabled form on the deployed address.
Netlify
The included netlify.toml sets the build command (npm run build), the dist folder, Node.js 22, cache headers for /_astro/* and /images/*, and a “page not found” rule for French and Arabic.
- Create a new site on Netlify.
- Connect your Git repository.
- Netlify reads its settings from
netlify.tomland 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.
If the contact form uses the netlify provider, keep Netlify form detection on, and test a real submission after you deploy.
Vercel
The included vercel.json sets the trailing slash, redirects /sitemap.xml to /sitemap-index.xml, and sets the build command to sh vercel.sh. The included vercel.sh builds your site with your Vercel project’s address as SITE_URL, which overrides baseUrl. Its preview builds use that address with staging. in front.
- Create a new project on Vercel.
- Connect your Git repository.
- Vercel reads its settings from
vercel.jsonand deploys your site.
Cloudflare Pages
- Create a new project on Cloudflare Pages.
- Connect your Git repository.
- Set the build command to
npm run buildand the output folder todist. - Set the Node.js version with a
NODE_VERSIONenvironment variable, using the version your edition asks for.
The included wrangler.toml names the project veltro-astro, sets the output folder to ./dist, and turns on nodejs_compat. Change its name to your project if you deploy with Wrangler. npm run deploy:cf runs wrangler pages deploy. Wrangler isn’t one of the theme’s dependencies, so install and sign in to it first.
Headers And Missing Pages
The included public/_headers (Netlify and Cloudflare Pages), vercel.json, and public/.htaccess (Apache) 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 Files.
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 off. To edit online, add PUBLIC_TINA_CLIENT_ID and TINA_TOKEN to your host. See Tina. Your host needs Node.js 22.23.4 or later on 22, or 24.
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.