This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.
npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>
Where <site_name>
is your Firebase Hosting site (e.g. my-site
from my-site.firebaseapp.com
).
The files will be downloaded into a folder <site_name>_<version_id>
where the version ID is the
current version of your site.
In your advice, I have this question: " "Site Viewer" permission on the site" How to do this ?.
I did all the things you have shown except "site viewer" cause idk how to do this.
After those things, I got this error:
(node:8648) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use
node --trace-warnings ...
to show where the warning was created)ERROR: FirebaseError: HTTP Error: 404, Not Found
Please help me, I really need the source code to review and learn for an upcoming interview.
God blesses you.
Thankssssssss