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 11import { getVisitorAuthClaims , getVisitorAuthClaimsFromToken } from '@/lib/adaptive' ;
2+ import { getDynamicCustomizationSettings } from '@/lib/customization' ;
23import type { SiteAPIToken } from '@gitbook/api' ;
34import { type SiteURLData , fetchSiteContextByURLLookup , getBaseContext } from '@v2/lib/context' ;
45import { jwtDecode } from 'jwt-decode' ;
@@ -67,6 +68,8 @@ export async function getDynamicSiteContext(params: RouteLayoutParams) {
6768 siteURLData
6869 ) ;
6970
71+ context . customization = await getDynamicCustomizationSettings ( context . customization ) ;
72+
7073 return {
7174 context,
7275 visitorAuthClaims : getVisitorAuthClaims ( siteURLData ) ,
You can’t perform that action at this time.
0 commit comments