@@ -2,8 +2,8 @@ import { cookies } from "next/headers";
22import { GB_UUID_COOKIE } from "@/middleware" ;
33import RevalidateMessage from "@/app/revalidate/RevalidateMessage" ;
44import { GrowthBook } from "@growthbook/growthbook" ;
5- import { GrowthBookTracking } from "@/lib/GrowthBookTracking" ;
65import { configureServerSideGrowthBook } from "@/lib/growthbookServer" ;
6+ import { growthbookManagedWarehouseServerPlugins } from "@/lib/growthbookManagedWarehouse" ;
77
88export default async function ServerDynamic ( ) {
99 // Helper to configure cache for next.js
@@ -14,6 +14,7 @@ export default async function ServerDynamic() {
1414 apiHost : process . env . NEXT_PUBLIC_GROWTHBOOK_API_HOST ,
1515 clientKey : process . env . NEXT_PUBLIC_GROWTHBOOK_CLIENT_KEY ,
1616 decryptionKey : process . env . NEXT_PUBLIC_GROWTHBOOK_DECRYPTION_KEY ,
17+ plugins : growthbookManagedWarehouseServerPlugins ( ) ,
1718 } ) ;
1819 await gb . init ( { timeout : 1000 } ) ;
1920
@@ -26,10 +27,6 @@ export default async function ServerDynamic() {
2627 const feature1Enabled = gb . isOn ( "feature1" ) ;
2728 const feature2Value = gb . getFeatureValue ( "feature2" , "fallback" ) ;
2829
29- // If the above features ran any experiments, get the tracking call data
30- // This is passed into the <GrowthBookTracking> client component below
31- const trackingData = gb . getDeferredTrackingCalls ( ) ;
32-
3330 // Cleanup
3431 gb . destroy ( ) ;
3532
@@ -50,8 +47,6 @@ export default async function ServerDynamic() {
5047 </ ul >
5148
5249 < RevalidateMessage />
53-
54- < GrowthBookTracking data = { trackingData } />
5550 </ div >
5651 ) ;
5752}
0 commit comments