【发布时间】:2018-10-13 15:27:37
【问题描述】:
在解决了一些问题后,我试图在 firebase 上重新部署我的 react 应用程序。但是重新部署会出错。不知道是什么问题。
我也尝试查看其他帖子中提供的答案,但对我没有任何帮助。
firebase.json详情如下:
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [{
"source": "**",
"destination": "/index.html",
"headers": [{
"key": "Cache-Control",
"value": "max-age=0"
}]
}]
}
}
错误:HTTP 错误:400,hosting.rewrites[0] 不完全是来自 [子模式 0],[子模式 1]
这是我第一次遇到这个错误。所以不知道是什么问题。
【问题讨论】: