I've implemented the Javascript SDK in my NextJS a...
# ask-questions
s
I've implemented the Javascript SDK in my NextJS application. I have features rendering during SSR which is my desired use for them, but now I want to debug on the client and swap out variants using the Chrome Extension. Is it possible to override the flags during SSR? It seems like I should be able to see the variant override when I reload the page since my uuid is static, which I have confirmed. However I never see the variant load in unless I'm on localhost.
Do I need a connection to back end SDK for that to work? I would think it would sync my override to the cloud instance and serve the user with this uuid the correct variant. Is that not how it works?
I'm guessing there is no way to form a "connection with the back end" since Next is really a serverless framework but perhaps there is?
In localhost, everything seems to be connected. But still when I override the variant I see the same thing rendered no matter what I set in the dev tools.
Retool___Build_internal_software_better__with_AI_.png
s
You can use the devtools with Next.js (or SSR flags/experiments), but it requires a bit more setup. It works by sharing a cookie from backend to the client with the debug values. We provide a few guides for implementation here: https://docs.growthbook.io/lib/node#nextjs