简体   繁体   中英

Problem with deploying app to firebase and all config files are listed in browser

Can someone help me... When I run firebase deploy it's deploying my static folder to hosting, but when I open website url in browser and check source files, there all my files with configs and components, tokens for DB as well. It is not safe at all... everybody can view all source files. How I can deploy so that nobody can view config files etc?

The Firebase CLI will deploy everything you put in the "public" folder by default. Once that folder is published, everything is, as you observed, public information.

If you don't want a file to be deployed, you should either remove it from the public folder, or tell the CLI to ignore that file for deployment using the ignore configuration in firebase.json.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM