0
firebase.jsonウェブサイトを展開することができません:firebase CLIで
{
"hosting": {
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [ {
"source" : "**/*[email protected](otf|woff|woff2|eot)",
"headers" : [ {
"key" : "Access-Control-Allow-Origin",
"value" : "*"
} ]
}, {
"source" : "**/*[email protected](css|js|png)",
"headers" : [ {
"key" : "Cache-Control",
"value" : "max-age=14400"
} ]
} ]
}
}
私はfirebase deploy
コマンドでホスティングFirebaseで静的なWebサイトを展開することができませんが。エラーが発生しました:
Error: There was an error loading firebase.json:
Unexpected token ' ' at 3:1
"rewrites": [
^
正確にはどのようなエラーですか。
有効なJSONはhttps://jsonlint.com/です。このエラーは、ファイルの第3行目の始めに目に見えない文字があると思います。 –