Requirements
- Next.js 14+ (proxy/middleware guidance below includes Next.js 16 conventions)
- React 18+
- Node 18+
Packages
Environment Variables
Do I need WACHT_API_KEY for UI-only integration?
Do I need WACHT_API_KEY for UI-only integration?
No. If you are not calling Wacht backend APIs from server routes/actions, only
NEXT_PUBLIC_WACHT_PUBLISHABLE_KEY is required.Can I pass frontendApiUrl manually?
Can I pass frontendApiUrl manually?
No. The SDK derives it from the publishable key to keep behavior consistent across runtimes.
Can I use Pages Router?
Can I use Pages Router?
Yes for client provider usage, but the recommended server protection path is proxy/middleware with App Router style server integration.
