File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -92,12 +92,16 @@ function getExtraConfigs(path: string): SiteData[] {
92
92
segments . pop ( )
93
93
}
94
94
// debug info
95
- const summaryTitle = `Extra Configs for ${ path } :`
96
- const summary = configs . map ( ( c , i ) => ` ${ i + 1 } . ${ ( c as any ) . __module__ } ` )
97
- summary . push ( ` ${ summary . length + 1 } . .vitepress/config (root)` )
98
- console . info (
99
- [ summaryTitle , '' . padEnd ( summaryTitle . length , '=' ) , ...summary ] . join ( '\n' )
100
- )
95
+ if ( inBrowser ) {
96
+ const summaryTitle = `Config Layers for ${ path } :`
97
+ const summary = configs . map (
98
+ ( c , i ) => ` ${ i + 1 } . ${ ( c as any ) . __module__ } `
99
+ )
100
+ summary . push ( ` ${ summary . length + 1 } . .vitepress/config (root)` )
101
+ console . debug (
102
+ [ summaryTitle , '' . padEnd ( summaryTitle . length , '=' ) , ...summary ] . join ( '\n' )
103
+ )
104
+ }
101
105
return configs
102
106
}
103
107
@@ -160,8 +164,6 @@ export function initData(route: Route): VitePressData {
160
164
161
165
export function useData < T = any > ( ) : VitePressData < T > {
162
166
const data = inject ( dataSymbol )
163
- ; ( window as any ) . stackView = stackView
164
- ; ( window as any ) . data = data
165
167
if ( ! data ) {
166
168
throw new Error ( 'vitepress data not properly injected in app' )
167
169
}
You can’t perform that action at this time.
0 commit comments