Is there a guide on how to set up growthbook devto...
# ask-questions
c
Is there a guide on how to set up growthbook devtools extension with a self-hosted api? It seems that there is no way to connect the sdk as the https://cdn.growthbook.io hostname is hardcoded server-side rendering next.js provides the initialization payload but I want the sdk to connect to api too. For example all attributes are rendered as text inputs where as I want the enum attributes to be rendered using dropdown. Updating values on settings does not have effect. img 1: settings tab img 2: sdk status tab (defaults to cdn url no matter what)
image.png
image.png
it signals that no key found but smh the backend sdk is connected well, renders the client key, correct url meaning that the data is well hydrated from server supplied payload
image.png
h
At first glance, it looks like it's working correctly (maybe???). My main question would be how are you hydrating your front-end SDK? Seems like you are passing down the payload only but not initializing it with and apiHost and clientKey (which is fine most of the time, since the hydrated payload generally makes the connection variables unnecessary). One quirk of our JS and React SDK is that if you don't provide an apiHost, it defaults to using cdn.growthbook.io (which is actually fine since you already have a hydrated payload). Is something not working correctly beyond the confusing status report in devtools?
c
We do pass api host + client at the time of initialization and then at the app start up it synchronously fetches the features config. Then we pass the client instance to the client side as we server-side-render things Something is off
h
Is there a specific problem you're facing with the hydrated SDK? Or just that you were expecting the front-end SDK to have the proper API host shown in DevTools?
c
I'm lacking attribute metadata. Every attribute is string type on the devtools, where for instance enum would be rendered as a doprdown list. Things like that