Comments (7)
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.
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.
@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?
for this link:
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.
@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.
@TooTallNate FlagValues component doesn't accept a nonce parameter, so far that's been my only issue.
from remix.
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.
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)
- vercelPreset changes build directory structure, breaking start script from remix docs HOT 6
- how can I gracefully handle FUNCTION_INVOCATION_TIMEOUT HOT 2
- `vercel build` fails in template HOT 2
- Cannot deploy if any route uses the edge runtime HOT 8
- Custom entry.server with Vite not possible HOT 3
- Root route imports are always bundled for edge HOT 1
- Merge Conflict ❌
- 2.9.1? HOT 3
- `TypeError: headers.getSetCookie is not a function` HOT 4
- Merge Conflict ❌
- Deployment to Vercel causes a build panic when using manual route configuration #9431 HOT 1
- need `getLoadContext` HOT 8
- Merge Conflict ❌
- Cannot deploy remix-utils to edge HOT 4
- Merge Conflict ❌
- maxDuration does not work for remix + vite HOT 13
- [Remix + Vite] Trying to build production app failing (mixed client and server code) HOT 9
- Links have stopped working after deploy HOT 8
- using config export breaks HMR
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remix.