我正在尝试使用serverless.yml来更改区域:
service: my-service
provider:
name: google
runtime: nodejs
project: my-project
region: europe-west1 <------ CHANGING REGION HERE
credentials: ~/.gcloud/keyfile.json
plugins:
- serverless-google-cloudfunctions
# needs more granular excluding in production as only the serverless provider npm
# package should be excluded (and not the whole node_modules directory)
package:
exclude:
- node_modules/**
- .gitignore
- .git/**
functions:
first:
handler: http
events:
- http: path
但是它什么也没做,它总是落在距离很远的默认区域us-central1中。如果有人知道如何更改此设置,请告诉我,谢谢。