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"Netlify Settings
Section titled “Netlify Settings”- Repository: connect the GitHub repository that contains the theme.
- Branch:
main. - Base directory: leave empty when
package.jsonis 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.
Custom Domain
Section titled “Custom Domain”- Add the custom domain in Netlify.
- Follow Netlify’s DNS instructions.
- Wait for SSL provisioning.
- Update
astro.config.mjswith the final production URL. - Rebuild and redeploy.
Enable Netlify SSL after DNS points to Netlify. Certificate provisioning can take time after DNS changes.