Search forkrail

Search documentation, comparisons, and CLI commands.

Websites & full-stack
Production ready

Deploy Nuxt on forkrail

Zero adapter setup: Nitro detects VERCEL=1 at build time and emits its native Vercel preset, powering SSR, routeRules ISR/SWR, Nuxt Image, and static /_nuxt/ delivery.

Adapter
Nitro built-in vercel preset (automatic)
Runtime
Node.js 24 (arm64)
Detection
package.json (nuxt)
Memory
1,024 MB recommended for SSR
  • SSR & Nitro routes
    Zero-config Nitro vercel preset with routeRules
  • ISR & SWR caching
    routeRules isr / swr cached directly by the router
  • Nuxt Image
    Automatic /_vercel/image optimization
  • Skew protection
    Supported via Nitro vercel preset cookie

1. Configure routeRules & Nuxt Image

Nuxt needs no extra adapter package on forkrail. During the build, forkrail exports VERCEL=1, which tells Nitro to emit .vercel/output/ automatically. Your routeRules (isr, swr, redirect, headers, proxy) execute at the regional router before Lambda wakes.

nuxt.config.ts
export default defineNuxtConfig({
modules: ['@nuxt/image'],
routeRules: {
'/': { prerender: true },
'/blog/**': { isr: 300 },
'/products/**': { swr: 60 },
'/old-docs/**': { redirect: '/docs' },
},
})
Do not pin NITRO_PRESET=node-server

Leave nitro.preset and NITRO_PRESET unset so Nitro selects its vercel preset. If a project explicitly pins node-server, forkrail runs .output/server/index.mjs as a single server, but router-level isr, routeRules, and /_vercel/image will not run at the router.

2. Deploy & set runtime secrets

Nuxt runtime config values (NUXT_* and NUXT_PUBLIC_*) are read from your project’s KMS-encrypted environment variables.

Add secrets and deploy
printf 'postgres://...' | forkrail env add my-nuxt-app NUXT_DATABASE_URL --target production
forkrail project my-nuxt-app --memory 1024
forkrail deploy --prod

3. Crons & function rules

Split heavy API endpoints with nitro.vercel.functionRules to grant them a longer maxDuration. For scheduled jobs in Nuxt (Nitro 2), define crons in vercel.json pointing to a server route in server/api/cron/ and check Authorization: Bearer $CRON_SECRET.

Ready to deploy your Nuxt project inside your own AWS account?
Quickstart