Deployment & Launch
Covena builds a static site into dist/, so it runs on any static host. It ships ready-made settings for Netlify (netlify.toml), Vercel (vercel.json, vercel.sh), and Cloudflare Pages (wrangler.toml). The site needs no account, database, or environment variables.
| Setting | Value |
|---|---|
| Build command | npm run build |
| Output directory | dist |
| Node.js version | 22.12 or later |
| Package manager | npm (package-lock.json) |
Before You Launch
Go through this list once. Each item links to the page that explains it. PUBLIC-VALUES-NEEDED.md in the theme folder lists every demo value and the file it lives in, if you want the same list as a file.
Address and identity
-
baseUrlin[site]is your real address, andnpm run buildprints no[site]warning (SEO & AI Visibility) -
title,tagline,description, andlogoTextin[site], andcommon.taglineandcommon.siteDescriptionin eachsrc/i18n/<lang>.json, describe your firm (Site Identity & Logo) - The logo, favicons (
npm run generate-favicons), the sharing image (public/images/og-image.jpg), colors intheme.css, and fonts infonts.jsonare yours (Colors & Fonts)
Firm details
-
[seo] authoris your firm’s name (search engines read it in the structured data), and[settings.contactInfo]has your phone and email (Firm Info) -
contactInfoin eachsrc/i18n/<lang>.jsonhas your address, and the office files insrc/content/offices/are your offices - The regulator line in
src/content/pages/<language>/regulatory-information.mdhas your regulator, your number, and a link to its rules. No square-bracket placeholders are left -
footer.descriptionandfooter.copyrightin eachsrc/i18n/<lang>.jsonname your firm, and the links insrc/config/social.jsonare your profiles (or"enable": false) - A project-wide search for
example.com,7946, and496 0finds nothing you still need to change. The sample numbers are in UK ranges set aside for TV and film
Forms
-
contactFormActionandcontactFormProviderpost to your own account, and a test message arrives (Forms) - The Mailchimp
formActionin[settings.subscription]and insrc/content/sections/<language>/newsletter.mdis your list, or the forms are turned off - The careers inbox (
[email protected]insrc/content/careers/<language>/) is yours, or the sample roles are removed
Sample content
- The attorneys, results, reviews, the 4.9 rating, awards, press mentions, client logos, fees, insights posts, and roles are yours or deleted (Collections, Results & Reviews, Fees)
- Every result still shows the disclaimer (
results.disclaimerinsrc/i18n/<lang>.json) - The demo photos in
src/assets/images/covena/are replaced with your own (Icons & Images)
Pages and menus
- The privacy policy, terms, disclaimer, and accessibility statement in
src/content/pages/<language>/are rewritten for your firm and reviewed - The homepages you don’t use are removed, and the menus point at your pages (Homepages, Menus)
-
/components/is removed or set todraft: trueif you don’t want the component gallery online (Pages) -
urlin[settings.quickExit]is a neutral page for your country, or the button is turned off (Quick Exit)
Analytics and checks
- Analytics tags are in
[head], marked withdata-consent, and the cookie banner text lists the tools you use (Cookies & Analytics) -
npm run verifyfinishes without errors - The French and Arabic text has been reviewed by a native speaker, or the languages you don’t need are removed (Internationalization)
- You checked the site at phone width and in every language you keep
Deploy
- Push your project to GitHub, GitLab, or Bitbucket.
- In Netlify, choose Add new site → Import an existing project and pick the repository.
- Netlify reads
netlify.toml: build commandnpm run build, publish folderdist, Node.js 22. Click Deploy.
The build uses baseUrl from config.toml unless you add a SITE_URL environment variable in the Netlify site settings.
netlify.toml also sets long-term caching for /_astro/* and /images/*, and sends missing /fr/... and /ar/... addresses to that language’s 404 page. When you add a language, add a block like the /fr/* one for it.
Using Netlify Forms? Set contactFormProvider = "netlify" and contactFormAction = "/", turn on form detection under Forms in the Netlify dashboard, and deploy again.
- Push your project to GitHub, GitLab, or Bitbucket.
- In Vercel, choose Add New → Project and import the repository. Framework preset: Astro.
- Vercel reads
vercel.json, which builds withsh vercel.sh. Click Deploy.
vercel.sh sets the site address (SITE_URL) for each build, and on Vercel it replaces baseUrl:
- Production builds use the
SITE_URLenvironment variable if you set one in the Vercel project settings. Otherwise they use your Vercel production domain. - Preview builds use
https://staging.<your production domain>.
Edit vercel.sh if you want something else. vercel.json also turns on trailing slashes, redirects /sitemap.xml to /sitemap-index.xml, and serves the .md copies (marked noindex) and the llms files as text.
From git: in the Cloudflare dashboard, open Workers & Pages → Create → Pages → Connect to Git, pick the repository, and set the build command to npm run build and the output directory to dist.
The included wrangler.toml sets NODE_VERSION = "22.13.1" under [vars] and the output folder in pages_build_output_dir. Cloudflare treats this file as the source of truth for those settings, so change them in the file. Set your address with baseUrl in config.toml.
From your computer: Covena doesn’t install Wrangler (Cloudflare’s command-line tool) for you. Add it once, change name in wrangler.toml (shipped as covena-astro) to your project name, then log in, build, and deploy:
npm install -D wranglernpx wrangler loginnpm run buildnpm run deploy:cfRun npm run build and upload the contents of dist/ to your web server or static host. The included public/.htaccess covers Apache.
Ask your host how to serve .md files as text/markdown and llms.txt as text/plain, if you keep [seo.ai] markdownPages and llmsTxt on. Without that, some browsers download those files instead of showing them.
After You Launch
- Open the live site and click through the main pages on a computer and on a phone, including the mega menu, the mobile menu, and the language switcher.
- Send a test through the contact form, the consultation form on
/consultation/, and the callback form on Home 3 (if you keep it), and check that each one arrives. - If you keep the quick exit button, press it and check where it lands. Then go back to a page that shows the button, press Escape twice, and check that it lands in the same place.
- Submit
https://your-domain/sitemap-index.xmlin Google Search Console and Bing Webmaster Tools. - Check the homepage and an attorney profile with Google’s Rich Results Test.
- Share a link in a chat app to check the preview image.
Updating The Live Site
With a git-connected host, every push to your main branch deploys on its own. Run npm run build (or npm run verify) first to catch errors before they reach your visitors. To take a new version of the theme, see Updating The Theme.