Foundry

Hosting guide

Put your site on Firebase Hosting.

Anyone already using Firebase for sign-in or a database.
  1. 1

    Install the tools

    With Node.js installed, run npm install -g firebase-tools, then firebase login.

  2. 2

    Set up hosting

    Inside the template folder, run firebase init hosting. Choose your project, type . as the public directory, and answer No to single-page app and to overwriting index.html.

  3. 3

    Deploy

    Run firebase deploy. You're live on a web.app address.

  4. 4

    Add your domain

    Firebase console → Hosting → Add custom domain, then add the records it gives you at your registrar.

Good to know

  • Deploying again later is just firebase deploy from the same folder.
  • Helix: Helix runs on Firebase App Hosting, which builds Next.js apps straight from GitHub.