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.
export default defineNuxtConfig({ modules: ['@nuxt/image'], routeRules: { '/': { prerender: true }, '/blog/**': { isr: 300 }, '/products/**': { swr: 60 }, '/old-docs/**': { redirect: '/docs' }, },})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.
printf 'postgres://...' | forkrail env add my-nuxt-app NUXT_DATABASE_URL --target productionforkrail project my-nuxt-app --memory 1024forkrail deploy --prod3. 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.
TanStack Start