【发布时间】:2020-02-13 09:49:04
【问题描述】:
我正在关注Firebase's Tutorial for SSR with Angular。不幸的是,教程已经过时了,因为 Angular 6 angular-cli.json 被 angular.json 取代。如何将步骤翻译成angular.json 文件?
为了比较,这是我的文件的样子:
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"norebro": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/norebro",
"index": "src/index.html",
"main": "src/main.ts",
...
【问题讨论】:
-
@miselking 谢谢,我正在使用 Angular 8。您是否知道任何教程如何将 Angular 8 SSR 与 Firebase 一起使用?我对这个话题很陌生。
-
我知道您无法将 Angular Universal 应用程序部署到静态主机(即 Firebase Hosting、AWS S3...)。但是,您可以使用
Firebase Cloud Functions。虽然我没有测试它,但我用这种方法添加了一个答案......希望它会起作用......
标签: html json angular firebase