GithubHelp home page GithubHelp logo

vercel feature flags about remix HOT 7 CLOSED

lifeiscontent avatar lifeiscontent commented on May 23, 2024
vercel feature flags

from remix.

Comments (7)

TooTallNate avatar TooTallNate commented on May 23, 2024 1

I created an example repo to show how to use @vercel/flags with Remix via just the Vercel toolbar (no provider): https://github.com/TooTallNate/remix-feature-flags/tree/main/app

from remix.

TooTallNate avatar TooTallNate commented on May 23, 2024

Was there something Remix-specific that you are looking for? The @vercel/flags package should work in your loader/action functions already. Let me know if you are running into any issues though.

from remix.

lifeiscontent avatar lifeiscontent commented on May 23, 2024

@TooTallNate yeah, it's been a long time since I've used Next.js so I've forgotten a lot of the conventions.

e.g. is app/page.tsx similar to root.tsx or app/routes/_index.tsx?

do I want this script tag to run on all pages? or only the pages that have a feature backed by a feature flag?

https://vercel.com/docs/workflow-collaboration/feature-flags/supporting-feature-flags#exposing-feature-flags-to-the-vercel-toolbar

for this link:

https://vercel.com/docs/workflow-collaboration/feature-flags/supporting-feature-flags#api-endpoint-recommended

it mentions providers, but is there a way to use feature flags via just the vercel toolbar and not have a provider at all?

if so, what should I set as origin if anything?

from remix.

lifeiscontent avatar lifeiscontent commented on May 23, 2024

@TooTallNate thank you for your help :)

is there a reason why you're using the cookie package vs https://remix.run/docs/en/main/utils/cookies ?

from remix.

lifeiscontent avatar lifeiscontent commented on May 23, 2024

@TooTallNate FlagValues component doesn't accept a nonce parameter, so far that's been my only issue.

from remix.

lifeiscontent avatar lifeiscontent commented on May 23, 2024

nvm, I realized remix is using the cookie package under the hood and they're doing some extra magic on top with createCookie

from remix.

TooTallNate avatar TooTallNate commented on May 23, 2024

I pushed some improvements after reading through the Vercel Feature Flags documentation some more. You can now add metadata like a description and link to the flags in the toolbar, and the toolbar is loaded during development as well.

I'll close out this issue now.

from remix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.