部署到 firebase 时不断收到以下错误。
firebase.json [
{
"config": {
"public": "static",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**",
"**/*.map"
],
"rewrites": [
{
"source": "**",
"function": {
"functionId": "app",
"region": "us-central1"
}
}
],
"cleanUrls": true,
"site": "toyoura-yutaka"
错误:请求 https://firebasehosting.googleapis.com/v1beta1/projects/-/sites/toyoura-yutaka/versions/42030a827f87a9e0?updateMask=status%2Cconfig 出现 HTTP 错误:400,Cloud Run 服务
app
不存在于区域 us-central1
中这个项目。
[2025-01-22T08:37:32.523Z] Error Context: {
"body": {
"error": {
"code": 400,
"message": "Cloud Run service `app` does not exist in region `us-central1` in this project.",
"status": "INVALID_ARGUMENT"
}
},
"response": {
"statusCode": 400
}
}
但是 firebase 部署 --only 功能成功了。
我以为是npm版本的问题,其实不是。`