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
(feat) initializeServerApp support for App Hosting auto init (#9151)
Implement Auto Init for `initializeServerApp`.
Auto init was previously implemented for `initializeApp` in #8483. This PR adds the same functionality to the `initializeServerApp` API surface.
Fixes#8863
Copy file name to clipboardExpand all lines: docs-devsite/app.md
+54-2Lines changed: 54 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ This package coordinates the communication between the different Firebase compon
23
23
| <b>function()</b> |
24
24
|[getApps()](./app.md#getapps)| A (read-only) array of all initialized apps. |
25
25
|[initializeApp()](./app.md#initializeapp)| Creates and initializes a FirebaseApp instance. |
26
+
| <b>function(config, ...)</b> |
27
+
|[initializeServerApp(config)](./app.md#initializeserverapp_e7d0728)| Creates and initializes a [FirebaseServerApp](./app.firebaseserverapp.md#firebaseserverapp_interface) instance. |
26
28
| <b>function(libraryKeyOrName, ...)</b> |
27
29
|[registerVersion(libraryKeyOrName, version, variant)](./app.md#registerversion_f673248)| Registers a library's name and version for platform logging purposes. |
28
30
| <b>function(logCallback, ...)</b> |
@@ -116,6 +118,38 @@ export declare function initializeApp(): FirebaseApp;
If invoked in an unsupported non-server environment such as a browser.
148
+
149
+
If [FirebaseServerAppSettings.releaseOnDeref](./app.firebaseserverappsettings.md#firebaseserverappsettingsreleaseonderef) is defined but the runtime doesn't provide Finalization Registry support.
150
+
151
+
If the `FIREBASE_OPTIONS` enviornment variable does not contain a valid project configuration required for auto-initialization.
| options |[FirebaseOptions](./app.firebaseoptions.md#firebaseoptions_interface)\|[FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)| <code>Firebase.AppOptions</code> to configure the app's services, or a a <code>FirebaseApp</code> instance which contains the <code>AppOptions</code> within. |
If invoked in an unsupported non-server environment such as a browser.
391
+
392
+
If [FirebaseServerAppSettings.releaseOnDeref](./app.firebaseserverappsettings.md#firebaseserverappsettingsreleaseonderef) is defined but the runtime doesn't provide Finalization Registry support.
0 commit comments