Installation
Follow these steps to install and configure better-auth-nextjs-prisma-ts.
Prerequisites: Node.js 18+ and a package manager (pnpm, npm, or yarn).
Install Dependencies
pnpm add @farming-labs/docsConfiguration
Your project includes a docs.config.ts at the root:
import { defineDocs } from "@farming-labs/docs";
import { colorful } from "@farming-labs/theme/colorful";
export default defineDocs({
entry: "docs",
theme: colorful({
ui: { colors: { primary: "#6366f1" } },
}),
});Project Structure
app/
docs/
layout.tsx # Docs layout
page.mdx # /docs
installation/
page.mdx # /docs/installation
quickstart/
page.mdx # /docs/quickstart
docs.config.ts # Docs configuration
next.config.ts # Next.js config with withDocs()What's Next?
Head to the Quickstart guide to start writing your first page.