Next.js Discord

Discord Forum

USING JAVASCRIPT CLIENT SDK IN NEXT.JS

Unanswered
Atlantic herring posted this in #help-forum
Open in Discord
Atlantic herringOP
Hey everyone! 👋

I'm working on a Next.js project and I want to integrate a JavaScript client SDK. Does anyone have tips or examples on:

Properly initializing the SDK in a Next.js environment

Handling client-side only code (so it doesn’t break SSR)

Best practices for authentication and API calls

Any guidance, code snippets, or resources would be super helpful! Thanks in advance.

2 Replies

useEffect and next/dynamic is your friend
@Yi Lon Ma useEffect and next/dynamic is your friend
Atlantic herringOP
Okay, thanks