Trying to deploy my firebase cloud function and getting the following error:
Error: Can't find the storage bucket region
The function I'm trying to deploy looks like:
import {initializeApp} from "firebase-admin/app";
import {getStorage} from "firebase-admin/storage";
import {getFirestore} from "firebase-admin/firestore";
import {logger} from "firebase-functions";
import {onDocumentDeleted} from "firebase-functions/v2/firestore";
import {onObjectFinalized} from "firebase-functions/v2/storage";
initializeApp();
export const onThumbUploaded = onObjectFinalized(
{
bucket: "<MY_PROJECT_ID>.appspot.com",
region: "us-central1",
},
async (event) => {
//... rest of my code...
});
I could not find anything regarding this issue at all in google or AI-Tools.

