Skip to content

Commit ed3f87b

Browse files
authored
Specify using v1 Cloud Functions (#1668)
1 parent 26849a6 commit ed3f87b

File tree

2 files changed

+3
-3
lines changed
  • app_check/integration_test/functions/functions
  • messaging/integration_test/functions/functions

2 files changed

+3
-3
lines changed

app_check/integration_test/functions/functions/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
const functions = require('firebase-functions');
17+
const functions = require('firebase-functions/v1');
1818
const admin = require('firebase-admin');
19-
admin.initializeApp(functions.config().firebase);
19+
admin.initializeApp();
2020

2121
// Adds two numbers to each other.
2222
exports.addNumbers = functions

messaging/integration_test/functions/functions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
// Import the Firebase SDK for Google Cloud Functions.
18-
const functions = require('firebase-functions');
18+
const functions = require('firebase-functions/v1');
1919
// Import and initialize the Firebase Admin SDK.
2020
const admin = require('firebase-admin');
2121
admin.initializeApp();

0 commit comments

Comments
 (0)