Skip to content

Commit

Permalink
Specify using v1 Cloud Functions (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maurice authored Nov 6, 2024
1 parent 26849a6 commit ed3f87b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app_check/integration_test/functions/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const functions = require('firebase-functions');
const functions = require('firebase-functions/v1');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
admin.initializeApp();

// Adds two numbers to each other.
exports.addNumbers = functions
Expand Down
2 changes: 1 addition & 1 deletion messaging/integration_test/functions/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

// Import the Firebase SDK for Google Cloud Functions.
const functions = require('firebase-functions');
const functions = require('firebase-functions/v1');
// Import and initialize the Firebase Admin SDK.
const admin = require('firebase-admin');
admin.initializeApp();
Expand Down

0 comments on commit ed3f87b

Please sign in to comment.