Skip to content

Next.js - loading feature toggles server-side #2190

Answered by thomasheartman
jebax asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @jebax! Thanks for the question and for the amount of research you've put into it. I might have a suggestion for you, but let me add additional context for you.

tl;dr: You might be able to use the Unleash proxy and its getEnabledToggles method.

On SSR

We don't have a complete story for SSR at the moment, but we're seeing questions about it more and more frequently, so it's probably something we'll devote more resources to in the somewhat near future.

On your solutions and options (additional context)

Regarding your two options, I agree that instantiating a new Unleash client with every request would incur prohibitive load times.

Regarding option two:

the unleash proxy client has no …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pransh15
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