Requirements
Before installing the Next.js SDK, ensure you have:- Next.js 14+ - The SDK requires Next.js 14 or later (App Router)
- React 18+ - The SDK requires React 18 or later
- Node.js 18+ - Node.js 18 or later
- pnpm 8+ (recommended) - Or npm 9+
- Wacht Deployment - A Wacht deployment with a public key
Installation
Install the Next.js SDK and its dependencies:Environment Variables
Add your Wacht public key to your environment variables:TypeScript Configuration
The SDK includes TypeScript definitions. No additional configuration is needed.Peer Dependencies
The SDK has these peer dependencies:Verification
Verify the installation:Next Steps
- Quick Start - Get started with a basic setup
- Setup Guide - Detailed configuration guide
- Components Reference - Available components
- Hooks Reference - Available hooks
