问题
From Firebase DOCS:
Run functions locally
The Firebase CLI includes a Cloud Functions emulator which can emulate the following function types:
- HTTPS functions
- Callable functions
- Cloud Firestore functions
You can run functions locally to test them before deploying to production.
QUESTION
Is there a way to run cloud functions for Firebase Storage (ex: triggered by file upload) locally or do I need to actually deploy them for testing?
回答1:
firebaser here
The documentation you found is up to date. There is currently no way to run Cloud Storage triggered Cloud Functions in the Firebase emulator suite.
It might be worth filing a feature request or tracking the open feature requests on the Firebase tools repo.
来源:https://stackoverflow.com/questions/56803603/can-i-run-firebase-storage-cloud-functions-locally