Skip to content

Netlify Deployment

Verdict Law can deploy to Netlify as a static site. The included netlify.toml should define the build command and publish directory.

[build]
command = "npm run build"
publish = "dist"
  • Repository: connect the GitHub repository that contains the theme.
  • Branch: main.
  • Base directory: leave empty when package.json is at the repository root.
  • Build command: npm run build.
  • Publish directory: dist.
  • Functions directory: leave empty for static deployment.
  • Adapter: not required for static output.
  1. Add the custom domain in Netlify.
  2. Follow Netlify’s DNS instructions.
  3. Wait for SSL provisioning.
  4. Update astro.config.mjs with the final production URL.
  5. Rebuild and redeploy.

Enable Netlify SSL after DNS points to Netlify. Certificate provisioning can take time after DNS changes.