File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/gitbook-v2/src/app Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " gitbook-v2 " : patch
3
+ ---
4
+
5
+ apply customization for dynamic context
Original file line number Diff line number Diff line change 1
1
import { getVisitorAuthClaims , getVisitorAuthClaimsFromToken } from '@/lib/adaptive' ;
2
+ import { getDynamicCustomizationSettings } from '@/lib/customization' ;
2
3
import type { SiteAPIToken } from '@gitbook/api' ;
3
4
import { type SiteURLData , fetchSiteContextByURLLookup , getBaseContext } from '@v2/lib/context' ;
4
5
import { jwtDecode } from 'jwt-decode' ;
@@ -67,6 +68,8 @@ export async function getDynamicSiteContext(params: RouteLayoutParams) {
67
68
siteURLData
68
69
) ;
69
70
71
+ context . customization = await getDynamicCustomizationSettings ( context . customization ) ;
72
+
70
73
return {
71
74
context,
72
75
visitorAuthClaims : getVisitorAuthClaims ( siteURLData ) ,
You can’t perform that action at this time.
0 commit comments