Skip to content

Flags SDK template example #1124

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

Closed
wants to merge 1 commit into from
Closed

Conversation

AAorris
Copy link
Contributor

@AAorris AAorris commented Apr 22, 2025

Description

The primary purpose of this pull request is to have a specific template to clone where things are trimmed down.

Adds a "Bring your own adapter" example that's also a great place for providers to branch from.

Making examples from a common template helps replicate the experience of comparing implementations of TodoMVC@dferber90

How is it different from the existing two examples?

  • It simplifies cart management by just setting a cookie
  • It simplifies stable ID management by using a stable server side ID instead of a cookie
  • It provides an reference adapter implemented inline (This can then be referenced when suggesting custom adapters to customers)
  • Compared to the experimentation example, it simplifies some component usage to make it easier to read through the app folder
  • It simplifies some strings so that there's a lower chance that a copy will contain words from another service by accident

The differences are not extreme, but it should make it notably smoother to copy and use this example for a new provider, and it should also stand on its own as the "Bring your own Flags SDK adapter" example.

@AAorris AAorris requested a review from a team April 22, 2025 20:58
Copy link

vercel bot commented Apr 22, 2025

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 22, 2025 9:01pm
app-dir-i18n ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
app-dir-share-state ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
edge-functions-cookies ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
edge-functions-news ❌ Failed (Inspect) Apr 22, 2025 9:01pm
edge-functions-streams ❌ Failed (Inspect) Apr 22, 2025 9:01pm
edge-geolocation-country-block ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
edge-middleware-modify-request-header ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
edge-user-agent-based-rendering ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
example-reduce-image-bandwidth-usage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
i18n ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
next-edge-api-route-hello-world ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
nodejs-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-combining-data-fetching-strategies ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-image-fallback ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-image-offset ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-loading-web-fonts ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-microfrontends ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-microfrontends-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-pagination-with-ssg ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-parallel-routes-navbar ❌ Failed (Inspect) Apr 22, 2025 9:01pm
solutions-reuse-responses ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-script-component-ad ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm
solutions-script-component-strategies ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 9:01pm

Copy link

vercel bot commented Apr 22, 2025

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

A member of the Team first needs to authorize it.

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.

None yet

1 participant