Interface: ValaxySSGContext
Defined in: packages/valaxy/client/setups.ts:14
En
SSG context interface — property-compatible with ViteSSGContext so that downstream themes / addons only need to change their import path.
Zh
SSG 上下文接口 — 属性签名与 ViteSSGContext 完全兼容,下游主题/插件只需更改 import 路径。
Properties
app
ts
app: App;Defined in: packages/valaxy/client/setups.ts:15
head
ts
head: any;Defined in: packages/valaxy/client/setups.ts:18
initialState
ts
initialState: Record<string, any>;Defined in: packages/valaxy/client/setups.ts:20
isClient
ts
isClient: boolean;Defined in: packages/valaxy/client/setups.ts:19
onSSRAppRendered()
ts
onSSRAppRendered: (cb) => void;Defined in: packages/valaxy/client/setups.ts:21
Parameters
cb
() => void
Returns
void
routePath?
ts
optional routePath: string;Defined in: packages/valaxy/client/setups.ts:23
router
ts
router: Router;Defined in: packages/valaxy/client/setups.ts:16
routes
ts
routes: RouteRecordRaw[];Defined in: packages/valaxy/client/setups.ts:17
triggerOnSSRAppRendered()
ts
triggerOnSSRAppRendered: () => Promise<unknown[]>;Defined in: packages/valaxy/client/setups.ts:22
Returns
Promise<unknown[]>