1
votes

I have build a react app and I used firebase hosting to deploy my app. It's working fine but firebase has hosted all the source code. I only need to upload build folder. How can I remove other files from the hosting?

firebase.json

{
  "hosting": {
    "public": "build",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

enter image description here

Is there any thing to do?