next-forge

Guides setup, customization, and deployment of the next-forge Turborepo template for Next.js SaaS applications.

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/dsgalkar/dnyaneshwar_portfolio --skill next-forge-dsgalkar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-forge
Source: https://github.com/dsgalkar/dnyaneshwar_portfolio/tree/main/.agents/plugins/vercel/skills/next-forge/upstream
Command: npx skills add https://github.com/dsgalkar/dnyaneshwar_portfolio --skill next-forge-dsgalkar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building a production SaaS application from scratch requires wiring together authentication, payments, database, email, CMS, analytics, and security. This Skill provides expert guidance on next-forge, a Turborepo template that pre-integrates these services, so you avoid weeks of boilerplate configuration. ## Core Features & Use Cases - Monorepo Architecture Guidance: Explains the apps (app, web, api, email, docs, storybook, studio) and shared packages (@repo/auth, @repo/database, @repo/payments, and more) so you know where every feature lives. - Setup and Environment Configuration: Walks through installation via the CLI, DATABASE_URL setup with Neon PostgreSQL, Prisma migrations, and optional integration keys for Clerk, Stripe, Resend, PostHog, and others. - Customization and Deployment: Covers swapping providers (e.g., Stripe to Paddle, Clerk to Auth.js), adding packages or apps, and deploying to Vercel as separate projects. - Use Case: You want to launch a SaaS product with subscriptions and a marketing site. Use this Skill to initialize next-forge, configure Stripe and Clerk keys, run database migrations, and deploy the app, web, and api projects to Vercel. ## Quick Start Ask the assistant to initialize a new next-forge project and walk you through configuring the database and running it locally.

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.js SaaS app with next-forge?

Run npx next-forge@latest init, choose a package manager, then set DATABASE_URL in packages/database/.env pointing to a PostgreSQL database. Run bun run migrate to push the schema, then bun run dev to start all apps.

How do I run database migrations in a Turborepo monorepo?

Edit the Prisma schema at packages/database/prisma/schema.prisma, then run bun run migrate. This executes prisma format, generate, and db push in sequence to update the database and regenerate the client.

Can I swap Clerk for another authentication provider in next-forge?

Yes, next-forge is modular. Replace the packages/auth directory with Supabase Auth, Auth.js, or Better Auth, then update the AuthProvider in the design system and the webhook handlers in the api app.

Does next-forge work without configuring all integrations?

Yes, only the database is required. All other integrations like Stripe, Resend, and PostHog degrade gracefully through optional chaining, so missing environment variables silently disable features instead of causing errors.

How do I deploy a Turborepo monorepo to Vercel?

Create three separate Vercel projects for app, web, and api, each with its root directory set to the corresponding folder under /apps/. Add environment variables per project or use Vercel Team Environment Variables to share common values.