web-manager 4.3.5 → 4.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/docs/architecture.md +1 -1
- package/package.json +1 -1
- package/src/index.js +2 -0
package/dist/index.js
CHANGED
|
@@ -104,6 +104,8 @@ class Manager {
|
|
|
104
104
|
// Configs carrying only projectId/authDomain still resolve for URL derivation.
|
|
105
105
|
if (this._resolveFirebaseConfig()?.apiKey) {
|
|
106
106
|
await this._initializeFirebase();
|
|
107
|
+
} else {
|
|
108
|
+
console.log('[Firebase] Skipped: config has no apiKey (Firebase-less site or empty framework merge blob)');
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
// Initialize Sentry if enabled
|
package/docs/architecture.md
CHANGED
|
@@ -56,4 +56,4 @@ Manager (index.js)
|
|
|
56
56
|
`initialize(config)` boots Firebase only when a usable web SDK config resolves:
|
|
57
57
|
|
|
58
58
|
- `_resolveFirebaseConfig()` checks the flat `firebaseConfig` blob first (canonical shape — BEM/BXM/EM), then the nested `firebase.app.config` (UJM yaml shape). A blob only counts when **at least one value is non-empty** — framework config merges (e.g. UJM's Jekyll chain) inject all-empty-string blobs into Firebase-less sites, and those resolve to `null` (no init, no URL derivation).
|
|
59
|
-
- Initialization additionally requires a **non-empty `apiKey`** — the SDK cannot boot without one (it crashes the page with `auth/invalid-api-key`). Configs carrying only `projectId`/`authDomain` still resolve so `getFunctionsUrl()`/`getApiUrl()` can derive URLs, but Firebase itself stays uninitialized.
|
|
59
|
+
- Initialization additionally requires a **non-empty `apiKey`** — the SDK cannot boot without one (it crashes the page with `auth/invalid-api-key`). Configs carrying only `projectId`/`authDomain` still resolve so `getFunctionsUrl()`/`getApiUrl()` can derive URLs, but Firebase itself stays uninitialized and the console logs `[Firebase] Skipped: config has no apiKey ...` (same idiom as `[Analytics] Skipped:`).
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -104,6 +104,8 @@ class Manager {
|
|
|
104
104
|
// Configs carrying only projectId/authDomain still resolve for URL derivation.
|
|
105
105
|
if (this._resolveFirebaseConfig()?.apiKey) {
|
|
106
106
|
await this._initializeFirebase();
|
|
107
|
+
} else {
|
|
108
|
+
console.log('[Firebase] Skipped: config has no apiKey (Firebase-less site or empty framework merge blob)');
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
// Initialize Sentry if enabled
|