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
Push to GitHub or GitLab
Ensure your Dustavez project is in a Git repository hosted on GitHub, GitLab, or Bitbucket.
Connect in Netlify
Go to app.netlify.com, click Add new site > Import an existing project, and select your repository.
Configure build settings
Netlify auto-detects Astro. Verify the settings:
- Build command:
npm run build - Publish directory:
dist
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:
[build] command = "npm run build" publish = "dist"
[[redirects]] from = "/*" to = "/index.html" status = 200 conditions = {Role = ["admin"]}Custom domain
- Go to Site settings > Domain management
- Click Add custom domain
- 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.
Netlify automatically creates preview deployments for every pull request. Share the preview URL with reviewers before merging.