snorreks / nx-cloud-functions-deployer

Plugin for Nx that adds support for deploying Cloud Functions for Firebase.
MIT License
6 stars 1 forks source link

options are working only on callable cloud functions #12

Open mostafa-tarek10 opened 4 months ago

mostafa-tarek10 commented 4 months ago

when I try to deploy with options for any function rather than callable functions are not working

@snorreks

mostafa-tarek10 commented 4 months ago

hint: using functions v2

i hope if there is a solutions to this.

snorreks commented 4 months ago

Can I see the code that is exported?

export default ....

mostafa-tarek10 commented 4 months ago

@snorreks This is an example of exporting a default function that writes customer data. I use the function handleCustomerWrite, passing the parameters according to the documentation. Be mindful of the limitations mentioned. When I deploy it, it is using default 256MiB memory and doesn't make a difference.

mostafa-tarek10 commented 4 months ago

export default onWritten(handleCustomerWrite, { memory: '1GiB' }); @snorreks