Honest beta status
Next.js 13.5–16 builds, runs, shares a router-backed cache across workers, and persists .next/cache between builds. Conformance testing against Next.js’s upstream suite and container-image packaging for >250 MB apps are still underway — test thoroughly on preview URLs before moving critical production apps.
1. Zero changes to next.config
You do not need to edit next.config or add custom cache handlers. During the build, forkrail enables standalone output automatically (via NEXT_ADAPTER_PATH on Next 15.5+ or NEXT_PRIVATE_STANDALONE=1), seeds prerendered pages and RSC payloads directly into the router’s shared cache, and preserves .next/cache (including Turbopack/webpack caches and Server Actions encryption keys) for fast rebuilds.
If your config sets output: 'export', forkrail leaves it alone and deploys the exported out/ directory as a zero-Lambda static site while honoring redirects(), rewrites(), headers(), and basePath.
2. Deploy a Next.js preview
# Allocate generous memory for fast Next.js cold starts and SSRforkrail project my-next-app --memory 1536# Deploy a preview URL and test side by sideforkrail deploy# Check logs and cache hits (x-vercel-cache: HIT / STALE / MISS)forkrail logs my-next-app --app --follow3. Current limits & tips
- Supported versions: Next.js 13.5 and later on Node 22 or 24 (set via
engines.node). Next before 13.5 and Yarn Plug’n’Play (nodeLinker: pnp) are refused. - Package size limit: Standalone output must stay under AWS Lambda’s 250 MB unzipped limit (the build log breaks down
node_modulesand largest files if exceeded). - Middleware matchers: Exclude
_next/staticand static image paths from yourmiddleware.tsmatcher so the router serves static files and cached pages without waking Node. - Skew protection: Works automatically on Next 14.1.4+ (and 13.5–14.1.3 with
experimental.useDeploymentId).