Menu

Post image 1
Post image 2
1 / 2
0

Turborepo Monorepo: Next.js 15 Frontend + Hono 4 Backend in One Repo

DEV Community·Iurii Rogulia·20 days ago
#PBPTl3OI
Reading 0:00
15s threshold

One repository, one TypeScript config, shared types between frontend and backend. No more copy-pasting response types into both projects. No more "the API returns a string but the frontend treats it as a number" bugs discovered in production. This is the monorepo architecture I use for my SaaS products, and specifically what powers vatnode.dev — an EU VAT validation SaaS with a Next.js 15 marketing and dashboard frontend and a separate Hono 4 API server. The separation matters for vatnode because the API is the product: it needs independent scaling, versioning, and deployment without touching the frontend. But they share too much — database types, validation schemas, response shapes — to live in separate repositories. Here is what the setup looks like and what I learned building it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More