Docs · 4
Publish it
Build a Templix title and put it online. Static hosts, the one setting to change first, and the checks worth doing before you share the link.
15 minutes
Astro titles build to plain static files, so they run on any host: Cloudflare, Netlify, Vercel, GitHub Pages or a folder on your own server.
1. Set your address
Copy .env.example to .env and set SITE_URL to the address the site will live at. Search engines and link previews use it.
SITE_URL=https://www.your-domain.com
2. Build
npm run build
The finished site is in dist/. Preview it locally with npm run preview.
3. Deploy
Connect the project to your host, or upload dist/. The build command is npm run build and the output folder is dist. Each title’s docs/deployment.md has the settings for the common hosts, including caching for the films.
Before you share the link
- Replace every piece of sample content: names, prices, reviews, addresses.
- Have the legal pages reviewed for your business and country.
- Open the site on a phone, on mobile data.
- If you want analytics, add your ID to
.env. The consent banner appears by itself and nothing loads before the visitor agrees. - Search the project for the title’s sample brand name to catch anything left over.