MCPcopy Create free account
hub / github.com/firebase/firebase-tools / constructDefaultWebSetup

Function constructDefaultWebSetup

src/fetchWebSetup.ts:83–91  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

81 * Construct a fake configuration based on the project ID.
82 */
83export function constructDefaultWebSetup(projectId: string): WebConfig {
84 return {
85 projectId,
86 databaseURL: `https://${projectId}.firebaseio.com`,
87 storageBucket: `${projectId}.appspot.com`,
88 apiKey: "fake-api-key",
89 authDomain: `${projectId}.firebaseapp.com`,
90 };
91}
92
93/**
94 * TODO: deprecate this function in favor of `getAppConfig()` in `/src/management/apps.ts`

Callers 3

prepareFrameworksFunction · 0.90
getBackendAppConfigFunction · 0.90
fetchWebSetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…