Skip to content

Commit cc7a691

Browse files
committed
Handle demo- projects
1 parent a4a09cf commit cc7a691

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/util/postinstall.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ try {
7676
return partialConfig;
7777
}
7878
const projectId = partialConfig.projectId || '-';
79+
// If the projectId starts with demo- this is an demo project from the firebase emulators
80+
// treat the config as whole
81+
if (projectId.startsWith('demo-')) {
82+
return partialConfig;
83+
}
7984
const appId = partialConfig.appId;
8085
const apiKey = partialConfig.apiKey;
8186
if (!appId || !apiKey) {

0 commit comments

Comments
 (0)