Sign in
Log inSign up
David Herbert

63 likes

·

605 reads

4 comments

David Jaja
David Jaja
Jan 11, 2023

Love how straightforward this is. ✌ Really cool stuff.

3
·
Spiff Jekey-Green
Spiff Jekey-Green
Jan 11, 2023

I once had need for this feature flagging thing and ended up using environment variables to check if a feature is available or not, and this somehow required redeployment. This approach is way better. I am definitely using this next time. Thanks

3
·
Dave Parsons
Dave Parsons
Jan 12, 2023

Great article! I didn't know about ConfigCat. Looks like a cool service.

Two suggestions. Read the API key from the runtime environment. It shouldn't be in the code. kit.svelte.dev/docs/modules#$env-dynamic-p…

I think as currently written the user could briefly see the "oops" message before the feature flag is loaded. Does creating the configCat client and reading the feature flag need to be in onMount? Realistically, the client would be shared among components, so probably created in a separate file.

3
·