Video Guide
Configuration Structure
Create your configuration files in a dedicated directory:Define Your Schema
Inconfigs/main.tsp
:
Define Your Values
Inconfigs/user-settings.config.ts
:
Generate Config and Types
First install the React SDK:Using in Next.js Server Components
Typeconf React SDK provides both server and client side helpers. Here’s how to use it in a server component:Client-side Usage
For client-side configuration you need to add a provider to the layout:useTypeconf
hook: