Hosting Options
Use Pagesmith hosting or adapt an exported Astro project for another supported host.
Pagesmith includes managed hosting. On eligible plans, you can export the Astro project and configure it for another host.
Built-in Hosting
Pagesmith hosting provides:
- Cloudflare network: Serves the deployed project
- SSL: Provides HTTPS after domain validation and certificate setup
- Custom domains: Connects supported domains on eligible plans
- Versioned publishing: Creates a new deployed version after a successful build
- Restore controls: Lets you return to an available earlier version
Built-in hosting keeps publishing, domains, and supported Pagesmith services in one workflow.
Self-Hosting Options
Export the project on an eligible plan, then check its output mode, adapter, integrations, environment variables, and data services before choosing another host.
Vercel
Useful when your team already uses Vercel.
- Export project from Pagesmith
- Push to GitHub
- Import in Vercel dashboard
- Install the appropriate Astro adapter and configure the project
# Framework: Astro
# Build: npm run build
# Output: dist
Netlify
Useful for static projects that fit Netlify’s deployment model.
- Export project from Pagesmith
- Push to GitHub
- Connect repo in Netlify
- Deploy with:
# netlify.toml
[build]
command = "npm run build"
publish = "dist"
Cloudflare Pages
Useful when your team already uses Cloudflare.
- Export project from Pagesmith
- Push to GitHub
- Create Pages project
- Configure:
Build command: npm run build
Output directory: dist
AWS / S3 + CloudFront
Useful when the project must fit existing AWS infrastructure.
- Build locally:
npm run build - Upload
dist/to S3 bucket - Configure CloudFront distribution
- Set up custom domain
Any Static Host
This works only when the project builds to static files:
- Run
npm run build - Upload contents of
dist/folder - Configure redirects, headers, domains, and error pages for the host
SSR Hosting
If the site uses server rendering, database access, or server routes, use a compatible Astro adapter and runtime. The snippets below are examples. Confirm current adapter names and settings in Astro’s documentation.
Cloudflare Workers
Astro has native Cloudflare adapter:
// astro.config.mjs
import cloudflare from '@astrojs/cloudflare';
export default defineConfig({
adapter: cloudflare(),
});
Vercel Edge
Use the Vercel adapter:
import vercel from '@astrojs/vercel/edge';
export default defineConfig({
adapter: vercel(),
});
Node.js Server
For traditional Node hosting:
import node from '@astrojs/node';
export default defineConfig({
adapter: node({ mode: 'standalone' }),
});
Domain Configuration
When self-hosting:
- Add your domain to the hosting provider
- Update DNS records:
- A record → Provider’s IP
- CNAME → Provider’s URL
- Complete the provider’s domain validation and SSL setup
When to Self-Host
Built-in hosting is useful when:
- Getting started
- Don’t need special infrastructure
- You want to manage publishing and domains in Pagesmith
- The project uses Pagesmith-managed services
Consider another host when:
- Corporate infrastructure requirements
- Need specific provider features
- Part of larger deployment pipeline
- You have reviewed the operational cost and migration work
Related Docs
- Export: Move project code to GitHub
- GitHub Integration: Synchronize project code
- Custom Domains: Configure a domain