1. Configure Astro (static or SSR)
For a purely static Astro site (output: 'static' with no server routes), no adapter is required — forkrail builds dist/ and serves /assets/ and /_astro/ with immutable cache headers straight from S3. For SSR, Server Islands, or Actions, install @astrojs/vercel:
import { defineConfig } from 'astro/config'import vercel from '@astrojs/vercel'export default defineConfig({ output: 'server', adapter: vercel({ isr: true, imageService: true, }),})2. Deploy to forkrail
# Preview deploymentforkrail deploy --memory 1024# Production deploymentforkrail deploy --memory 1024 --prod3. Server Islands, Actions & middleware
- Server Islands & Actions: Work out of the box on Node 24 arm64 with streaming responses and
Astro.clientAddresspopulated from the router’s verified visitor IP. - ISR & Cache-Control: Pages marked with
isrcache at the regional router and share across regions over the router peer link. On-demand invalidation via@vercel/functionsinvalidateByTagworks automatically. - `edgeMiddleware`: Runs on Node inside your deployment’s Lambda workers while preserving the visitor’s original IP, geolocation headers, and firewall context.
- Sessions: Configure a session storage driver (such as DynamoDB, Redis, or ElastiCache inside your AWS account), just as on Vercel.
Use @astrojs/vercel rather than @astrojs/node
forkrail imports Vercel’s Build Output API (.vercel/output/). Projects configured with @astrojs/node, Netlify, or Cloudflare adapters are refused at build time so nothing silently deploys with broken routing.
Related documentation
Ready to deploy your Astro project inside your own AWS account?
Quickstart