Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(example): example showing how to use next.js with confidence #217

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

msvens
Copy link
Contributor

@msvens msvens commented Feb 4, 2025

Added an example showing how to integrate Confidence using 'use client' directives with next.js

* removed unneeded images
* renamed and moved RootConfidenceProvider.tsx
* removed eslint config to rely on root config
@ouwargui
Copy link

Hey there, sorry for barging in, if this is not the right place for this question let me know and I'll delete it.

I'm exploring experimentation platforms for my company, and Confidence looks like a great fit for our use cases.

We're using Nextjs and wondering if it's possible to mix the server and React SDKs. Specifically, we have Nextjs API routes that act as entry points, where we conditionally redirect users based on experiment flags. We'd like to use Confidence for this logic while also leveraging the client SDK for UI changes.

Is this use case supported? Additionally, if Confidence supports server-side experimentation, does that extend to React Server Components as well?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants