Jerry
Jerry

Reputation: 1583

Firebase Hosting Deploy missing file

Sometime when i deploy things to firebase hosting, i found that some file will not being uploaded to firebase.

In my public folder, there are 23 files

enter image description here

But when i deploy it to hosting, it only upload 22 files. enter image description here

What i did before the deployment is just delete the previous version of hosting in the console.

I tried to re-deploy like 10 times but still the same.

Can some one expert can teach me how to solve this issue?

Thank you.

Edited Here is the firebase.json

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

The missing file is config.json that placed in the public/assets/config/ folder

New Finding/Answer For those who got the same issue, you just have to wait more 15 mins and hard refresh(Ctrl + F5) the page again. Not sure is this caused by CDN or cache issue at server side. Because the other html & js code is updated, just my config.json not reflecting immediately.

Upvotes: 2

Views: 4310

Answers (1)

Jerry
Jerry

Reputation: 1583

New Finding/Answer

For those who got the same issue, you just have to wait more 15 mins and hard refresh(Ctrl + F5) the page again. Not sure is this caused by CDN or cache issue at server side.

Because the other html & js code is updated, just my config.json not reflecting immediately.

Not sure is other people facing the same issue, but at least mine just work in that way.

Upvotes: 5

Related Questions