.gcloudignore file so I could override gcloud ignoring the .next folder. Downloading the source of the function, I have confirmed that the .next folder is now included.next.config.mjs to have an output of standalone and the correct basePath for the given cloud function URL.res object from GCP did not have a setHeader method, so I polyfilled that and there were no more errors being thrown when navigating the to function URL.