# Google FirebaseDeploy Thulite with Firebase Hosting by configuring firebase files, building your site, and publishing the public output with the Firebase CLI.

Use [Firebase Hosting](https://firebase.google.com/products/hosting), part of [Firebase](https://firebase.google.com/), to deploy a Thulite site.

## Prerequisites

To follow this guide, install [firebase-tools](https://github.com/firebase/firebase-tools).

## How to deploy

{{< steps >}}
{{< step >}}

Create `firebase.json` at the root of your project with the following content:

```json {title="firebase.json"}
{
  "hosting": {
    "public": "public",
    "ignore": []
  }
}
```

{{< /step >}}
{{< step >}}

Create `.firebaserc` at the root of your project with the following content:

```json {title= ".firebaserc"}
{
  "projects": {
    "default": "<YOUR_FIREBASE_ID>"
  }
}
```

{{< /step >}}
{{< step >}}
Run your build command:

{{< tabs "run-build" >}}
{{< tab "npm" >}}

```bash
npm run build
```

{{< /tab >}}
{{< tab "pnpm" >}}

```bash
pnpm run build
```

{{< /tab >}}
{{< tab "Yarn" >}}

```bash
yarn run build
```

{{< /tab >}}
{{< tab "bun" >}}

```bash
bun run build
```

{{< /tab >}}
{{< /tabs >}}

{{< /step >}}
{{< step >}}

Deploy your site:

```bash
firebase deploy
```

{{< /step >}}
{{< /steps >}}

## Learn more

<!-- markdownlint-disable MD034 -->

{{< card-grid >}}
{{< link-card src="svgs/simple-icons/hugo.svg" title="Host on Firebase" description="Official Hugo guide for deploying sites on Firebase." href="https://gohugo.io/host-and-deploy/host-on-firebase/" target="_blank" >}}
{{< /card-grid >}}

<!-- markdownlint-enable MD034 -->
