File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import { FlagixProvider } from "@flagix/react" ;
44import { Toaster } from "@flagix/ui/components/sonner" ;
55import { QueryClient , QueryClientProvider } from "@tanstack/react-query" ;
6+ import { env } from "@/config/env" ;
67
78const queryClient = new QueryClient ( {
89 defaultOptions : {
@@ -14,8 +15,8 @@ const queryClient = new QueryClient({
1415} ) ;
1516
1617const SDK_OPTIONS = {
17- apiKey : "44f19025-072d-4e7c-b24e-3d27aa95b95b" ,
18- apiBaseUrl : "http://localhost:5000" ,
18+ apiKey : env . FLAGIX_SDK_API_KEY as string ,
19+ apiBaseUrl : env . FLAGIX_SDK_BASE_URL as string ,
1920 initialContext : {
2021 sessionId : "session-12345" ,
2122 platform : "web" ,
Original file line number Diff line number Diff line change 11export const env = {
22 apiBase : process . env . NEXT_PUBLIC_API_URL ,
33 appBase : process . env . NEXT_PUBLIC_APP_URL ,
4+ FLAGIX_SDK_API_KEY : process . env . FLAGIX_SDK_API_KEY ,
5+ FLAGIX_SDK_BASE_URL : process . env . FLAGIX_SDK_BASE_URL ,
46} ;
You can’t perform that action at this time.
0 commit comments