I am using serverless framework to deploy a cloud function in the GCP with the following configuration:
service: myname
provider:
name: google
stage: prod
runtime: nodejs10
region: us-central1
project: myname
credentials: keyfile.json
environment:
IS_PROD: 'true'
plugins:
- serverless-google-cloudfunctions
package:
exclude:
- node_modules/**
- .gitignore
- .git/**
functions:
clear:
handler: clearCommand
events:
- http: clear
I am using serverless-google-cloudfunctions plug-in version 3.1.0. After deployment, the address/path becomes following:
https://us-central1-myname.cloudfunctions.net/myname-prod-clear
I am wondering if there is a way to set the path by myself to be like the following:
Is there a way to set this? The serverless framework way is preferred.