Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/deploy/apphosting/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,15 @@ export function getBackendConfigs(options: Options): AppHostingMultiple {
if (backendIds.length === 0) {
return [];
}
return backendConfigs.filter((cfg) => backendIds.includes(cfg.backendId));

const filteredConfigs = backendConfigs.filter((cfg) => backendIds.includes(cfg.backendId));
const foundIds = filteredConfigs.map((cfg) => cfg.backendId);
const missingIds = backendIds.filter((id) => !foundIds.includes(id));
if (missingIds.length > 0) {
throw new FirebaseError(
`App Hosting backend IDs ${missingIds.join(",")} not detected in firebase.json`,
);
Comment thread
joehan marked this conversation as resolved.
}

return filteredConfigs;
}
Loading