Interface: ValaxySSGContext
Source: 1.1.0 · e3417e89b638
Defined in: packages/valaxy/client/setups.ts:13
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:14
head
ts
head: any;Defined in: packages/valaxy/client/setups.ts:17
initialState
ts
initialState: Record<string, any>;Defined in: packages/valaxy/client/setups.ts:19
isClient
ts
isClient: boolean;Defined in: packages/valaxy/client/setups.ts:18
onSSRAppRendered
ts
onSSRAppRendered: (cb) => void;Defined in: packages/valaxy/client/setups.ts:20
Parameters
cb
() => void
Returns
void
routePath?
ts
optional routePath?: string;Defined in: packages/valaxy/client/setups.ts:22
router
ts
router: RouterClassic;Defined in: packages/valaxy/client/setups.ts:15
routes
ts
routes: RouteRecordRaw[];Defined in: packages/valaxy/client/setups.ts:16
triggerOnSSRAppRendered
ts
triggerOnSSRAppRendered: () => Promise<unknown[]>;Defined in: packages/valaxy/client/setups.ts:21
Returns
Promise<unknown[]>