Skip to main content

Next.js Inbox Examples

App Router Setup

The Inbox component is client-side only. Create a client component wrapper:
Use it in a server component or layout:

HMAC Hash Generation (Server Utility)

Pages Router Setup

Environment Variables

Important: Use NEXT_PUBLIC_ prefix for the app ID (client-safe). Never expose NOVU_SECRET_KEY to the client.

With Router Integration

Handle notification clicks with Next.js router: