Skip to main content
Stringboot fully supports Next.js, including the new App Router (React Server Components) and the classic Pages Router.

App Router (Next.js 13+)

Server Component Layout

Initialize the provider in your root layout.

Client Components

Use hooks inside any Client Component marked with 'use client'.

Pages Router (Next.js 12-)

For older Next.js applications, initialize the SDK in _app.tsx.
Environment Variables: Remember to start your environment variables with NEXT_PUBLIC_ if they need to be accessed on the client side.