On this page
Astro Lumetric is a complete website for a software product: a homepage, pricing, docs, customer stories, a blog, About, Contact and a sign-in page. You put your product’s name and text in, and the rest is done. This post takes you from the code on GitHub to your site online.
What you need
Get the code
git clone https://github.com/hansmartensdev/Astro-Lumetric.git my-site
cd my-site
pnpm install
Run it on your computer
pnpm dev
The site opens at http://localhost:4321. Change a file and the page reloads. The one exception is the design setting: after you change design in src/config/theme.config.mjs, stop the dev server and start it again, as Choose your design explains.
pnpm build makes the finished site, and pnpm preview shows that build. The search on the site only works in the build, because its index is made at the end of pnpm build.
Before you change much, pnpm validate is worth knowing: it runs the linter, Astro’s checks, the unit tests and the build in one go.
Put it online
The contact form and the newsletter signup run on a server, so the site needs a host that runs one. Astro Lumetric works on Vercel, Netlify and Cloudflare, and on any server that runs Node. When it builds on one of those three hosts, the theme picks the right adapter by itself; anywhere else it builds Astro’s Node server. To choose one yourself, set DEPLOY_TARGET to vercel, netlify, cloudflare or node. Cloudflare needs its adapter first: pnpm add @astrojs/cloudflare.
On the host, set SITE_URL to your own address, such as https://example.com. The theme uses it for the canonical links, the sitemap, the share images and the link in the newsletter’s confirmation email. On your computer it goes in .env: copy .env.example to .env and fill it in.
The forms send through Resend. Set RESEND_API_KEY on the host, and contact messages go to the email in src/config/site.config.ts. Without it, a live site refuses a message and the form shows an error, so nothing is lost without anyone knowing.
Next
Your product’s name, your text and your logo come next: see Make Astro Lumetric yours.