Docs / Deployment / Netlify

Netlify

Deploy your Dustavez site to Netlify with continuous deployment and instant rollbacks.

Netlify offers free static hosting with continuous deployment from Git, instant rollbacks, and preview deploys for pull requests.

Setup

1

Push to GitHub or GitLab

Ensure your Dustavez project is in a Git repository hosted on GitHub, GitLab, or Bitbucket.

2

Connect in Netlify

Go to app.netlify.com, click Add new site > Import an existing project, and select your repository.

3

Configure build settings

Netlify auto-detects Astro. Verify the settings:

  • Build command: npm run build
  • Publish directory: dist
4

Deploy

Click Deploy site. Netlify builds and publishes your documentation. Every push to your main branch triggers a new deployment.

Configuration file

For more control, add a netlify.toml to your project root:

netlify.toml
[build]
command = "npm run build"
publish = "dist"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
conditions = {Role = ["admin"]}

Custom domain

  1. Go to Site settings > Domain management
  2. Click Add custom domain
  3. Follow the DNS configuration instructions to point your domain to Netlify

Environment variables

Set environment variables in Site settings > Environment variables. These are available during the build process.

Preview deploys

Netlify automatically creates preview deployments for every pull request. Share the preview URL with reviewers before merging.

Last updated: April 4, 2026
Edit this page on GitHub