@smooai/config — Next.js dogfood
Proves the unified SDK on Next.js: bundle-baked public config via withSmooConfig, live feature flag via useFeatureFlag, and a secret read through a server action via @smooai/config/server.
① Bundle-baked (withSmooConfig → NEXT_PUBLIC_* env vars)
apiUrlhttps://api.smoo.aiobservabilityflag default- ❌ OFF
② Live HTTP flag (ConfigProvider → ConfigClient, 30 s cache)
observability: ⏳ loading…
③ Server action — secret tier via @smooai/config/server
Clicking this runs readServerConfig() on the Next.js server. It reads the Supabase URL (public) and service key (secret) through the unified SDK's priority chain. The secret value never leaves the server; we return only a length + source tier so the browser can verify the read worked.