mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
c0d8224015
Update docs and examples to pass the adapter factory directly (adapter: vercelAdapter) instead of calling it (adapter: vercelAdapter()), reflecting the AdapterOrFactory support in flag(). Applied consistently to all zero-arg factory adapters (vercel, edge-config, custom adapter examples). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 lines
168 B
TypeScript
8 lines
168 B
TypeScript
import { vercelAdapter } from '@flags-sdk/vercel';
|
|
import { flag } from 'flags/next';
|
|
|
|
export const jsonFlag = flag({
|
|
key: 'json-flag',
|
|
adapter: vercelAdapter,
|
|
});
|