Reputation: 7054
How do I tell if my process is running in a Google Cloud Function?
Upvotes: 2
Views: 964
Reputation: 75715
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