We used to use Netlify hosting. It’s reliable, but we ran it out of Andrew’s personal account, so teams didn’t have visibility into how builds worked. We’re going to try out Firebase hosting for Spring 2021. This will mean everything related to the build pipeline will live in the project repo and in the Firebase console where the team can inspect and tweak it.
No need to read the following docs unless you’re curious how this all works under the hood.
In a terminal window, run
In a terminal window from inside the project repo, run firebase login
← will open a browser window where you will authenticate with a Google account that has access to the project in Firebase
<aside> ⚠️ "Owner" permissions in Firebase is required to complete this step.
</aside>
Next, from the same terminal window, cd
into tcl-xx-smart-shopping-list
and run firebase init
.
Choose the following at the prompts:
Which Firebase CLI features do you want to set up for this folder?
→ Hosting
Please select an option:
→ Use an existing project
(assumes the project is already created in the Firebase console)[Enter]
to confirmWhat do you want to use as your public directory?
→ build
Configure as a single-page app (rewrite all urls to /index.html)?
→ y