# Next.js RSC and AI route handlers

Next.js App Router projects must keep personalized RAG off CDN caches, run edge middleware with clock-skew-safe JWT checks, and strip debug retrieval fields from RSC payloads. Arviser delivers route handlers with explicit no-store discipline and eval fixtures. €2,400 PoC for edge vs Node runtime choice; €3,900 prototype with auth; €3,100 Eval CI in Vercel or self-hosted GitHub Actions. Hardening €5,600; MVP €8,500; audit from €8,000. Written scope in 48 hours; fixed overrun protection inside agreed spec. Written scope arrives within 48 hours with numeric pass marks on accuracy, groundedness, p95 latency, and cost per thousand runs; deliverables include Dockerized repos, handoff notes, and Promptfoo or DeepEval fixtures your team can extend.

**Sprints from €2,400 PoC · €3,100 eval CI · €3,900 prototype · €5,600 hardening · €8,500 MVP · audit from €8,000** · Topic: `engineering-nextjs` · [Open proof](/#open-proof) · [Sample scorecard](/sample)

HTML: [/engineering/nextjs](/engineering/nextjs) · Markdown: [/engineering/nextjs.md](/engineering/nextjs.md)


_Next.js RSC + AI SDK routes_

## Why teams trust this stack with Arviser

- Stack-specific gates for Next.js RSC and AI route handlers, not generic AI slideware.
- Senior engineers (10+ yrs) with daily eval tooling; founder architecture review (30+ yrs IT).
- Proof links include Open proof and sample scorecards, commercial sprints stay fixed-scope.

## Dual path

### For CTO / Staff Eng

Senior engineers (10+ yrs) build the vertical slice, wire retrieval and tools, and leave a repo your team can extend, with modular prompts, typed tool schemas, and CI eval fixtures.

### For VP Product / CFO

Fixed-hour packages (€2,400–€8,500) de-risk AI spend: kill fees on Risk-Shared PoC when narrow hypotheses fail, 100% PoC credit toward MVP on Go, and no surprise T&M overruns inside written scope.

Route: 24h PoC (€2,400) if unknown feasibility, else 40h Prototype (€3,900); add 32h Eval CI (€3,100) before scale; harden at €5,600 or ship MVP at €8,500.

## Stack-specific failure modes we gate in eval CI

- App Router caching stores personalized RAG answers in shared CDN keys.
- Edge middleware runs JWT decode without clock skew tolerance, random 401 on SSE.
- RSC flight payloads include raw retrieval debug fields when NODE_ENV mis-set.

### Sample eval fragment (nextjs)

```
export const config = { runtime: 'edge', maxDuration: 30 };
// eval: cache must be 'no-store' for /api/chat
```

## Which sprint fits?

| Situation | Recommendation | Sprint |
| --- | --- | --- |
| Hard unknown on this stack | 24h Technical PoC | €2,400 · 3–5 days |
| Working demo, no CI evals | 32h Eval CI harness | €3,100 · 1 week |
| Pilot traffic soon | 60h Hardening or 80h MVP | €5,600–€8,500 |

## FAQ

### Do you build Next.js RSC and AI route handlers under fixed scope?

Yes. We deliver written scope in 48h and fixed-hour packages; overruns inside agreed spec are on us.

### Can we start with eval CI only?

Yes, 32h Eval CI from €3,100 when a prototype exists but gates do not.

Reviewed by Vadim Nareyko, 30+ yrs IT · Last updated 2026-11-06

## Related

[Frontend hub](/engineering/frontend) · [Eval CI](/services/eval-ci-harness)

