Skip to content

How to use Bootstrapping with Svelte? #9118

Answered by FredrikOseberg
JE4GLE asked this question in Q&A
Discussion options

You must be logged in to vote

@JE4GLE

The API format for the backend and frontend SDKs are different, because we don't want to leak feature flag configuration down to the client side. This data may contain sensitive information that you don't want clients to be able to access. Therefore a design decision was made early on that the frontend SDKs only receive evaluated feature flags, to avoid leaking the configuration and also reduce the amount of data transferred over the wire downstream to the connecting clients.

What you need to do in this case is to use the Node SDK to transform the feature flags into a format that the frontend SDK will understand. I have an example here using the unleash-proxy. The proxy is now dep…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JE4GLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants