FAQ
Frequently asked questions about next-forge
Why don't you use trpc?
While tRPC is a great tool for building type-safe APIs, Next.js Server Actions provide similar benefits with tighter framework integration. This native solution reduces complexity while maintaining the type safety that makes tRPC attractive. Since Server Actions are part of the framework itself, they're also likely to receive continued optimization and feature improvements directly from the Next.js team.
Why did you pick Prisma over Drizzle?
While Drizzle is an awesome lightweight and performant ORM, we chose Prisma for several key reasons, primarily around developer experience, type safety and simplicity. We're open to exploring other ORMs in the future, but for now Prisma is the best fit for our needs.
Why does apps/web
have a prebuild
script?
The website has a prebuild script in order to use the Content Collections CLI directly. The files are cached and not rebuilt in the Next.js build process. This is a workaround for this issue.