FlagFix
Getting started

Installer le premier SDK

Ajouter @flagfix/browser, @flagfix/node ou @flagfix/react depuis npm.

Last updated on

FlagFix

1. Choisir un paquet

Type d’appPaquet
Navigateur / SPA@flagfix/browser
API / worker Node@flagfix/node
UI React@flagfix/react

2. Installer

npm install @flagfix/browser

3. Créer le client

Créez une clé Client SDK dans le tableau de bord, puis :

import { createFlagFix } from "@flagfix/browser";

const client = createFlagFix({
  clientKey: process.env.NEXT_PUBLIC_FLAGFIX_CLIENT_KEY!,
  apiHost: "https://api.flagfix.io",
});

const started = await client.start();
if (!started.ready) {
  console.error(started.reason);
}

apiHost est l’API FlagFix (https://api.flagfix.io, ou l’hôte de votre entreprise). Suite : Vue d’ensemble SDK · Tests unitaires.

Cette page vous a-t-elle été utile ?

On this page