output.ssgByEntries
- 类型:
Record<string, boolean | object> - 默认值:
undefined
在多入口应用中,为每个入口分别配置 SSG。
Info
- 单入口建议使用
output.ssg。 - 多入口建议优先使用
output.ssgByEntries。 - 当
output.ssg为true且未配置output.ssgByEntries时,所有入口下的所有路由都会作为 SSG 路由处理。
配置类型
示例
按入口启用/禁用 SSG
modern.config.ts
按入口配置具体路由
modern.config.ts
配置入口或路由请求头
modern.config.ts