next-forge

Guides development tasks in next-forge-derived Turborepo monorepos with Bun workspaces.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/Ssrrb/cerramos-codebase --skill next-forge-ssrrb
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: next-forge
Source: https://github.com/Ssrrb/cerramos-codebase/tree/main/skills/next-forge
Command: npx skills add https://github.com/Ssrrb/cerramos-codebase --skill next-forge-ssrrb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Working in a next-forge starter or a repo derived from it is confusing because starter defaults often drift from the actual repository state. This Skill helps you locate code, understand app and package ownership, configure environment variables, swap providers, and deploy without relying on outdated template assumptions. ## Core Features & Use Cases - Workspace Navigation: Maps questions to the correct app under apps/ or shared package under packages/ using the @repo/<name> convention. - Setup and Environment Guidance: Explains required versus optional env vars, Drizzle database commands, and Better Auth configuration based on real keys.ts files. - Provider Swaps and Deployment: Walks through replacing database, auth, payments, CMS, or email providers and deploying app, web, and api as separate Vercel projects. - Use Case: You inherit a next-forge-derived repo where auth uses Better Auth instead of Clerk and payments use PagoPar instead of Stripe. Ask where the payment webhook lives, and get the exact route apps/api/app/webhooks/payments/route.ts plus the env vars it needs. ## Quick Start Ask where a specific feature or route lives in this next-forge-style monorepo and how to run or extend it.

Frequently Asked Questions about next-forge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a next-forge monorepo locally?▼

Run bun install from the repository root, set DATABASE_URL for the database package, then start development with bun run dev. Use Turbo filters like bun run dev --filter app to scope work to a single app.

Where does code live in a next-forge Turborepo?▼

Deployable apps live under apps/ (app, web, api, email, docs, storybook) and shared modules live under packages/ imported as @repo/<name>. Authenticated product routes go in apps/app/app/api, public commerce routes in apps/web/app/api, and webhooks in apps/api/app/webhooks.

How do I swap the auth or payments provider in next-forge?▼

Replace the owning package first, such as packages/auth or packages/payments, then update the consuming route handlers like apps/app/app/api/auth/[...all]/route.ts or apps/api/app/webhooks/payments/route.ts. Also update env validation in the package keys.ts and any app env.ts files.

Does next-forge use Prisma or Drizzle for the database?▼

This repo uses Drizzle with the Neon serverless driver on PostgreSQL, not Prisma. Use bun run db:generate, db:migrate, db:push, and db:studio for schema workflows, and define tables in packages/database/schema.ts.

Why is my next-forge environment variable not being detected?▼

Env validation is split across package-level keys.ts files and each app's env.ts composition. Check packages/*/keys.ts for development fallbacks, then verify the consuming app actually composes that package's schema in its env.ts.

How do I deploy next-forge apps to Vercel?▼

Treat app, web, and api as separate Vercel projects with their own root directories. Set shared environment variables like DATABASE_URL and NEXT_PUBLIC_* URLs across projects, and add provider-specific values only to the apps that need them.