我已经通过preact cli生成了渐进式Web应用程序,并希望部署在firebase static上
npm run serve -- --server config
你需要有 firebase.json 项目内部文件和 database.rules.json 生成文件中的文件。一旦你有了这些文件,试试 firebase init 然后选择数据库,然后重试 firebase deploy
firebase.json
database.rules.json
firebase init
firebase deploy
数据库规则。json
{ "rules": { ".read": "auth != null", ".write": "auth != null" } }
firebase。json
{ "database": { "rules": "build/database.rules.json" }, "hosting": { "public": "build", "rewrites": [ { "source": "**", "destination": "/build/index.html" } ] } }