<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/firebase-deploy-a-react-application-with-firebase-hosting-ujcm9hhmp" -->

---
title: Firebase: deploy a React application with Firebase Hosting
description: A step-by-step guide to creating a React app with Vite and deploying it to Firebase Hosting. Covers scaffolding a project using Vite, installing and...
canonical: https://daily.dev/posts/firebase-deploy-a-react-application-with-firebase-hosting-ujcm9hhmp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Firebase: deploy a React application with Firebase Hosting | daily.dev
og:description: A step-by-step guide to creating a React app with Vite and deploying it to Firebase Hosting. Covers scaffolding a project using Vite, installing and...
og:url: https://daily.dev/posts/firebase-deploy-a-react-application-with-firebase-hosting-ujcm9hhmp
og:image: https://api.daily.dev/og/posts/ujCM9hhmP.png
og:image:alt: Firebase: deploy a React application with Firebase Hosting
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Firebase: deploy a React application with Firebase Hosting

**[Playful Programming](https://daily.dev/sources/playfulprogramming)** · 4 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to creating a React app with Vite and deploying it to Firebase Hosting. Covers scaffolding a project using Vite, installing and authenticating the Firebase CLI, initializing Firebase Hosting with the correct settings (public directory as 'dist', SPA rewrites), and adding a deploy script to package.json that builds and deploys in one command. Firebase Hosting's free tier provides HTTPS by default and a public URL upon deployment.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://playfulprogramming.com/posts/firebase-deploy-a-react-application-with-firebase-hosting-560j>

---

Tags: [#react](https://daily.dev/tags/react), [#cicd](https://daily.dev/tags/cicd), [#firebase](https://daily.dev/tags/firebase), [#vite](https://daily.dev/tags/vite)

[View this post on daily.dev](https://daily.dev/posts/firebase-deploy-a-react-application-with-firebase-hosting-ujcm9hhmp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Firebase: deploy a React application with Firebase Hosting","url":"https://daily.dev/posts/firebase-deploy-a-react-application-with-firebase-hosting-ujcm9hhmp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/firebase-deploy-a-react-application-with-firebase-hosting-ujcm9hhmp"},"datePublished":"2026-03-16T21:47:40.699Z","dateModified":"2026-03-16T21:57:07.167Z","description":"A step-by-step guide to creating a React app with Vite and deploying it to Firebase Hosting. Covers scaffolding a project using Vite, installing and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d5730bacaa4e082bf9f39fb0d9b193e9?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d5730bacaa4e082bf9f39fb0d9b193e9?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Playful Programming","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Playful Programming","logo":"https://media.daily.dev/image/upload/s--WoGOmY81--/f_auto,q_auto/v1773697582/logos/playfulprogramming?_a=BAMAMiiu0","url":"https://daily.dev/sources/playfulprogramming"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/firebase-deploy-a-react-application-with-firebase-hosting-ujcm9hhmp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"react,cicd,firebase,vite","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Playful Programming","item":"https://daily.dev/sources/playfulprogramming"},{"@type":"ListItem","position":3,"name":"Firebase: deploy a React application with Firebase Hosting"}]}
```

