Reputation: 7074
How do I tell if my process is running in a Google Cloud Function?
Upvotes: 2
Views: 973
Reputation: 76018
I have 2 checks in mind:
Metadata-flavor: google
). If you get a Http status code 404, you aren't on Cloud Function.Upvotes: 2