Skip to content

Commit

Permalink
Export 'app' in v2 entrypoint (#1615)
Browse files Browse the repository at this point in the history
* Export 'app' in v2 entrypoint.

Fixes firebase/firebase-tools#7637.

* Add changelog.

* Add comment
  • Loading branch information
taeold authored Sep 16, 2024
1 parent 0c22c28 commit 4b7b279
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix bug where v1 functions can't be emulated (#1615)
4 changes: 4 additions & 0 deletions src/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,7 @@ export { params };
// NOTE: Required to support the Functions Emulator which monkey patches `functions.config()`
// TODO(danielylee): Remove in next major release.
export { config } from "../v1/config";

// Required for v1 Emulator support.
import { setApp as setEmulatedAdminApp } from "../common/app";
export const app = { setEmulatedAdminApp };

0 comments on commit 4b7b279

Please sign in to comment.