Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options are working only on callable cloud functions #12

Open
mostafa-tarek10 opened this issue Feb 24, 2024 · 4 comments
Open

options are working only on callable cloud functions #12

mostafa-tarek10 opened this issue Feb 24, 2024 · 4 comments

Comments

@mostafa-tarek10
Copy link

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

@snorreks

@mostafa-tarek10
Copy link
Author

hint: using functions v2

i hope if there is a solutions to this.

@snorreks
Copy link
Owner

Can I see the code that is exported?

export default ....

@mostafa-tarek10
Copy link
Author

mostafa-tarek10 commented Feb 28, 2024

@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
Copy link
Author

mostafa-tarek10 commented Feb 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants