examples icon indicating copy to clipboard operation
examples copied to clipboard

feat: add feature-flag-kameleoon edge middleware

Open esenzh opened this issue 2 years ago • 2 comments

Description

This example shows two variants of pages. First one is the default home page and the other one is new home page. It uses Kameleoon feature flag in the Vercel Middleware to redirect user to correct pages. A unique visitor id is being generated, stored in the cookie and reused so that the decisions stick for the same browser session.

This example uses Kameleoon NodeJS SDK inside Vercel Middleware to provide a starting point for you to implement experimentation and feature flagging for your experiences at the edge. For more information on how to run Feature Flags and Experiments with our platform follow the steps outlined in our documentation here.

Demo URL

https://feature-flag-kameleoon.vercel.app

Type of Change

  • [x] New Example
  • [ ] Example updates (Bug fixes, new features, etc.)
  • [ ] Other (changes to the codebase, but not to examples)

New Example Checklist

  • [x] 🛫 npm run new-example was used to create the example
  • [x] 📚 The template wasn't used but I carefuly read the Adding a new example steps and implemented them in the example
  • [x] 📱 Is it responsive? Are mobile and tablets considered?

esenzh avatar Apr 21 '23 13:04 esenzh

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app-dir-css-in-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
app-dir-i18n ❌ Failed (Inspect) Apr 21, 2023 1:14pm
app-dir-share-state ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
edge-functions-cookies ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
edge-functions-streams ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
edge-geolocation-country-block ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
edge-middleware-modify-request-header ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
example-reduce-image-bandwidth-usage ❌ Failed (Inspect) Apr 21, 2023 1:14pm
i18n ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
next-edge-api-route-hello-world ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
solutions-combining-data-fetching-strategies ❌ Failed (Inspect) Apr 21, 2023 1:14pm
solutions-image-fallback ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
solutions-image-offset ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
solutions-loading-web-fonts ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
solutions-microfrontends ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
solutions-microfrontends-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
solutions-pagination-with-ssg ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
solutions-reuse-responses ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
solutions-script-component-ad ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm
solutions-script-component-strategies ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 1:14pm

vercel[bot] avatar Apr 21 '23 13:04 vercel[bot]

@esenzh is attempting to deploy a commit to the Vercel Examples Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 21 '23 13:04 vercel[bot]