What you need before deploying your site
Before deploying, ensure you have everything set up correctly.
Hosting Account
Choose a hosting platform:
| Platform | Best For | Free Tier | Deploy Command |
|---|---|---|---|
| Netlify | Beginners | Yes | astrolock deploy netlify |
| Vercel | Next.js users | Yes | astrolock deploy vercel |
| AWS S3 | Full control | Pay-as-you-go | astrolock deploy aws |
Tip
Netlify is recommended for beginners - it’s free and easy to set up.
Platform CLI (Optional)
For automated deploys using astrolock deploy, install your platform’s CLI:
- Netlify
- Vercel
- AWS
npm install -g netlify-cli
netlify loginSee the Netlify CLI docs for detailed setup.
npm install -g vercel
vercel loginSee the Vercel CLI docs for detailed setup.
# Install AWS CLI and configure credentials
aws configureYou’ll need:
- An S3 bucket with static website hosting enabled
- IAM credentials with S3 write permissions
See the AWS CLI docs for installation.
npm install -g netlify-cli
netlify loginSee the Netlify CLI docs for detailed setup.
npm install -g vercel
vercel loginSee the Vercel CLI docs for detailed setup.
# Install AWS CLI and configure credentials
aws configureYou’ll need:
- An S3 bucket with static website hosting enabled
- IAM credentials with S3 write permissions
See the AWS CLI docs for installation.
Git Repository (Recommended)
For continuous deployment:
- Push your site to GitHub/GitLab
- Connect to your hosting platform
- Auto-deploy on every push
Info
Manual deploys work too - you don’t need Git to get started.
Site Configuration
Before deploying, update your site URL in .astrolock/astrolock.yaml:
site:
url: https://your-domain.com
This ensures links, sitemaps, and social sharing work correctly.
Next Steps
Once you have prerequisites in place:
- Preview your site locally before going live
- Deploy your site to your chosen platform
- See the CLI Reference for all available commands