Anyone know how to specify extra dependencies on a...
# google-cloud
e
Anyone know how to specify extra dependencies on a
gcp.cloudfunctions.CallbackFunction
? I’m trying to use
@google-cloud/workflows
in the callback. For reference:
I solved this by moving the workflows dependency from devDependencies to dependencies in the package.json of the project. After looking at the source code, I noticed it automatically gets the dependencies from there.
g
Just a word of caution, CallbackFunction is great for small functions but once you need more complicated dependencies eg.
zod
it breaks the serialization so we ended up packaging functions separately and just uploading the archive.