Oh man, what a weird breaking change GCP introduced for Cloud Functions...

https://cloud.google.com/functions/docs/release-notes#April_11_2023

Who thought it was a good idea to make it the *default* to run `npm run build` when deploying a function, when everyone who's ever deployed a function has already been doing that for years now? Super odd, took me a bit to figure out what was going on.

#gcp #cloudfunctions

Cloud Functions release notes  |  Cloud Functions Documentation  |  Google Cloud

Google Cloud
And FYI my preferred fix was setting `--set-build-env-vars=GOOGLE_NODE_RUN_SCRIPTS=""` in build deploy script, alternatively a package.json script called "gcp-build" set to an empty string will also prevent the default "build" script from running