This repository provides a working example of a Next.js 15 Pages Router implementation with @bitte-ai/chat.
The proxy server approach used in chat-boilerplate won't work with Pages Router due to:
- Lack of native
ReadableStream
support in Pages Router APIs - Fundamental architectural differences between routing systems (See Next.js discussion)
✅ Compatible With
- Your own external API endpoints (for custom agent implementations)
The Vercel team explicitly recommends using App Router for new projects. We strongly suggest using the chat-boilerplate with App Router support instead of this implementation unless you have specific legacy requirements.