hope you all are doing well and staying safe.
I have been trying to deploy my react app to the net using firebase, and all was going well until i tried updating it/redeploying it. It shows ✔ Deploy complete!
in my terminal but i check the website, it shows no update. I have tried putting the following code into firebase.json
:
"headers": [
{
"source": "/service-worker.js",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
}
]
But that didn't change anything. My steps to release the app have been the following:
npx create-react-app firebase-test
cd firebase-test
firebase login
firebase init #I only chose hosting, chose to configure as a single-page application, wrote build as my public folder
npm run build
firebase deploy
It shows the first deployment, but when I try to deploy again, I see no updates.