mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
import { vercelAdapter } from '@flags-sdk/vercel';
|
|
import { flag } from 'flags/next';
|
|
import type { CheckoutExperiment } from './types';
|
|
import { identify } from './utils';
|
|
|
|
export const checkoutExperiment = flag<CheckoutExperiment>({
|
|
key: 'free-shipping-banner',
|
|
adapter: vercelAdapter(),
|
|
identify,
|
|
});
|
|
|
|
export const jsonFlag = flag({
|
|
key: 'json-flag',
|
|
adapter: vercelAdapter(),
|
|
});
|