Learn to use Hypertune, a powerful feature flag, A/B testing and app configuration platform.
Hypertune is a powerful feature flag, A/B testing and app configuration platform. Built for TypeScript, Next.js, Vercel and the modern stack with full type-safety and Git version control.
The Hypertune SDK works on both the server and the client, so you don't need to set up and use different SDKs in your Next.js app. It ships with the Hypertune CLI which auto-generates code from your project schema so you can access your flags, initialize context arguments and update flag logic with end-to-end type-safety.
This example uses Vercel Edge Config to initialize the Hypertune SDK with zero latency, so you can access your feature flags and run A/B tests with no performance impact to your app.
Deploy this example with Vercel in one click:
You'll be guided through installing the Hypertune Vercel integration and setting up the required environment variables.
Once you've deployed your project, open the Hypertune console to update your feature flag logic.
cd
into itvercel link
to link to the Vercel projectvercel env pull .env.development.local
to pull your environment variablesNEXT_PUBLIC_HYPERTUNE_TOKEN
variable from .env.development.local
to .env
npm i
npm run dev
This example assumes your Hypertune project has an exampleFlag
feature flag defined on the root
field in your project schema. If you created a new Hypertune project while installing the integration, it will have this feature flag by default.
But if you connected an existing Hypertune project without this example flag, follow the instructions below.
To add new feature flags, define them in your project schema and configure their logic in the Hypertune console.
Then add them to hypertune.graphql
and run npx hypertune
to generate type-safe methods for them which you can use in your app.
Learn to use Hypertune, a powerful feature flag, A/B testing and app configuration platform.
Hypertune is a powerful feature flag, A/B testing and app configuration platform. Built for TypeScript, Next.js, Vercel and the modern stack with full type-safety and Git version control.
The Hypertune SDK works on both the server and the client, so you don't need to set up and use different SDKs in your Next.js app. It ships with the Hypertune CLI which auto-generates code from your project schema so you can access your flags, initialize context arguments and update flag logic with end-to-end type-safety.
This example uses Vercel Edge Config to initialize the Hypertune SDK with zero latency, so you can access your feature flags and run A/B tests with no performance impact to your app.
Deploy this example with Vercel in one click:
You'll be guided through installing the Hypertune Vercel integration and setting up the required environment variables.
Once you've deployed your project, open the Hypertune console to update your feature flag logic.
cd
into itvercel link
to link to the Vercel projectvercel env pull .env.development.local
to pull your environment variablesNEXT_PUBLIC_HYPERTUNE_TOKEN
variable from .env.development.local
to .env
npm i
npm run dev
This example assumes your Hypertune project has an exampleFlag
feature flag defined on the root
field in your project schema. If you created a new Hypertune project while installing the integration, it will have this feature flag by default.
But if you connected an existing Hypertune project without this example flag, follow the instructions below.
To add new feature flags, define them in your project schema and configure their logic in the Hypertune console.
Then add them to hypertune.graphql
and run npx hypertune
to generate type-safe methods for them which you can use in your app.