You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,38 +45,36 @@ framework.
45
45
This repository is maintained by Googlers but is not a supported Firebase product. Issues here are answered by
46
46
maintainers and other community members on GitHub on a best-effort basis.
47
47
48
-
# Enable framework-awareness
48
+
##Enable framework-awareness
49
49
50
50
This is an experimental addon to the Firebase CLI to add web framework support, to enable it call the following:
51
51
52
52
```shell
53
53
firebase experiments:enable webframeworks
54
54
```
55
55
56
-
# Prerequisites
56
+
##Prerequisites
57
57
58
58
- Firebase CLI version 10.9.1 or later (see installation instructions [here](https://firebase.google.com/docs/cli))
59
59
60
-
###Serve locally
60
+
## Serve locally
61
61
62
62
You can test your integration locally by following these steps:
63
63
64
64
1. Run `firebase serve` from the terminal. This should build your Angular app and serve it using the Firebase CLI.
65
65
2. Open your web app at the local URL returned by the CLI (usually http://localhost:5000)
66
66
67
-
###Deploy your app to Firebase Hosting
67
+
## Deploy your app to Firebase Hosting
68
68
69
69
When you're ready to share your changes with the world, deploy your Angular app to your live site:
70
70
71
71
1. Run `firebase deploy` from the terminal.
72
72
2. Check your website on: `SITE_ID.web.app` or `PROJECT_ID.web.app` (or your custom domain, if you did setup one)
73
73
74
-
## Guide: "Integrate Angular"
74
+
## "Integrate Angular"
75
75
76
76
Easily deploy your Angular application to Firebase and serve dynamic content to your users.
77
77
78
-
## What you'll need before you begin
79
-
80
78
### Prerequisites
81
79
82
80
- Firebase CLI version 10.9.1 or later (see installation instructions [here](https://firebase.google.com/docs/cli))
@@ -112,7 +110,7 @@ Change your hosting config in `firebase.json` to have a `source` option, rather
112
110
}
113
111
```
114
112
115
-
## Serve static content
113
+
###Serve static content
116
114
117
115
After initializing Firebase, you can serve static content with the standard deployment command:
118
116
@@ -157,7 +155,7 @@ your angular.json and adding more routes:
157
155
Firebase will also respect guessRoutes or a routes.txt file in the hosting root, if you need to customize further.
158
156
See [Angular’s prerendering guide](https://angular.io/guide/prerendering) for more information on those options.
159
157
160
-
### Optional: add a Server Module
158
+
### Optional: add a server module
161
159
162
160
### Deploy
163
161
@@ -228,14 +226,14 @@ export const FIREBASE_ADMIN = new InjectionToken<app.App>('firebase-admin');
228
226
229
227
```
230
228
231
-
###Serve fully dynamic content with SSR—Server Side Rendering
229
+
## Serve fully dynamic content with SSR—Server Side Rendering
232
230
233
-
####Optional: integrate with Firebase Authentication
231
+
### Optional: integrate with Firebase Authentication
234
232
235
233
The web framework-aware Firebase deployment tooling automatically keeps client and server state in sync using cookies. The Express `res.locals` object will optionally contain an authenticated Firebase App instance (`firebaseApp`) and the currently signed in user (`currentUser`). This can be injected into your module via the REQUEST token (exported from @nguniversal/express-engine/tokens).
236
234
237
235
238
-
## Guide: "Integrate Next.js"
236
+
## Integrate Next.js
239
237
240
238
Using the Firebase CLI, you can deploy your next.js Web apps to Firebase and serve them with Firebase Hosting. The CLI respects your next.js settings and translates them to Firebase settings with zero or minimal extra configuration on your part. If your app includes dynamic server-side logic, the CLI deploys that logic to Cloud Functions for Firebase.
241
239
@@ -315,7 +313,7 @@ The web framework-aware Firebase deployment tooling will automatically keep clie
## Guide: “Integrate other frameworks with Express.js”
316
+
## Integrate other frameworks with Express.js
319
317
320
318
With some additional configuration, you can build on the basic CLI functionality to extend integration support to Frameworks other than Angular and next.js.
0 commit comments