Functions Framework Adapter #76
Replies: 1 comment 1 reply
-
google cloud functions is expressjs compatible. you can just use the express adapter. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What would a Custom Adapter function look like to use @google-cloud/functions-framework as a VitePluginNode adapter? There is the http handler and the cloudevents handler.
Ignoring the cloudevent handler, the http handler has takes a function name, and (res, req) => any. In this non-functional code,
exportName
inGCFHTTPHandler
is clearly a string and not a function.... Im just not sure what to do next.Perhaps there is a away to access the function for VitePluginNodeConfig.exportName inside the custom adapter?
Beta Was this translation helpful? Give feedback.
All reactions