It’s easiest to do this using Firebase. I always forget this!
Steps:
- Try and make a project with
firebase init
- Fail a bit and then realize you need to open the firebase console
- Go through that merry go round and see the project get minted
- Do
firebase init
again and be sure to hit space when you see the Hosting option, then hit return, and then do the following:
# ? Which Firebase features do you want to set up for this directory? Press Space to select features, then Enter to confirm your choices. Hosting: Configure files f or Firebase Hosting and (optionally) set up GitHub Action deploys
...
=== Hosting Setup
Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to be uploaded with firebase deploy. If you
have a build process for your assets, use your build's output directory.
? What do you want to use as your public directory? build/web
? Configure as a single-page app (rewrite all urls to /index.html)? Yes
? Set up automatic builds and deploys with GitHub? No
? File build/web/index.html already exists. Overwrite? No
i Skipping write of build/web/index.html
i Writing configuration info to firebase.json...
i Writing project information to .firebaserc...
✔ Firebase initialization complete!
Then go off and do a hearty firebase deploy
and you shall be rewarded!