fastify 支持 Angular universal 的 engine 支持多语言环境
SSR
yarn add @aiao/universal-fastify-engine
参考 apps/dev-universal-fastify-engine
属性 | 类型 | 说明 |
---|---|---|
bootstrap | Function | Angular 的服务模块(AppServerModule ) |
outputPath | string | Angular 项目的输出目录 |
baseHref? | string | baseHref |
document? | string | Angular index.html 的字符串 |
documentFilePath? | string | Angular index.html 的路径 |
providers? | StaticProvider[] | 默认的 providers |
inlineCriticalCss? | boolean | 默认 false |
属性 | 类型 | 说明 |
---|---|---|
document? | string | 指定渲染 index.html 的字符串 |
documentFilePath? | string | Angular index.html 的路径 |
providers? | StaticProvider[] | 指定 providers |
inlineCriticalCss? | boolean | 默认 false |