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.