Google Firebase¶
- Using Google Firebase for hosting
Setup notes¶
- Setting up hosting
- Folder is “dist”.
- firebase.json should contain the following configuration. Documentation does not contain these notes. Results in an error. Firebase Issue 367
{ "hosting": { "public": "dist", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ] } }
Process¶
- Install firebase tools -
npm install -g firebase-tools
- Login to firebase -
firebase login
- Create project in firebase console.
- In project directory (Project/dist) -
firebase init
- Select firebase project
- Select hosting
- Be sure to configure firebase.json correctly
- Test with
firebase serve
- Deploy with
firebase deploy
- Configure domain information.
Issues¶
- Using TypeScript
- Node version online is v6.11.5
- Be sure to install firebase-tools in this version
- Samples is incorrect
- tsconfig.json is incorrect
- add “dom” to “lib”. Should be: “lib”: [“es6”, “dom”]
- Github Issues
- tsconfig.json is incorrect
Last update: April 13, 2020 15:25:03