A small Next.js app migrated to vinext — Cloudflare's Vite-based reimplementation of the Next.js API surface.
Companion repo for the article: ViNext: Next.js Rebuilt on Vite
- Server Components — the home page is a server component
- Server Actions — the guestbook form submits via
"use server" - ISR — the visitors page revalidates every 30 seconds
- API Route —
/api/visitorsreturns JSON
npm install
npm run devnpm run deploydocker build -t vinext-demo .
docker run -p 3000:3000 vinext-demoOr connect this repo to Dokploy and point it at the Dockerfile.