In Flutterflow IDE for Firebase cloud functions how to add secrets manager and other extensions

Database & APIs

So, I can never deploy the function it always fails

const { SecretManagerServiceClient } = require('@google-cloud/secret-manager');

I add this to the top and I read I also need to add this to the package.json

{
  "name": "functions",
  "description": "Firebase Custom Cloud Functions",
  "engines": {
    "node": "18"
  },
  "main": "index.js",
  "dependencies": {
    "firebase-admin": "^11.8.0",
    "firebase-functions": "^4.3.1",
    "@google-cloud/secret-manager": "^2.58.0"
  },
  "private": true
}

This should work right? or is the format wrong?

What have you tried so far?

Read docs and ask ai

Did you check FlutterFlow's Documentation for this topic?
No
1
2 replies