Pull Lost Code From Firebase Hosting Deployment
If one day you’ve lost your deployed firebase code, don’t panic like I did once!
you can get it back/recover and pull it with 2 methods.
Method 1 : Using Wget
You can use Wget to download the static folder of your hosting web pages.
1 | wget -r -np https://<YOURAPPNAME>.web.app |
Or you can use this js
that will fetch and download the static folder from the firebase server by running an npx command.
npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>
And here you go, you get all your static files from the firebase server.
© 2021 - Sofiane Hamlaooui - Making the world a better place 🌎