Skip to main content

Welcome Firebase Hosting Setup Complete

Firebase Deploy complete but website not displaying in ReactJS


How to solve: Welcome Firebase Hosting Setup Complete

If you’ve deployed your ReactJS app to Firebase Hosting but are only seeing the default message:

“Welcome Firebase Hosting Setup Complete. Now it's time to go build something extraordinary!”

Don’t worry—your deployment is likely misconfigured. Here’s how to fix it.


Step 1: Check Your firebase.json

Your firebase.json file tells Firebase where to find your built project files. If it’s pointing to the wrong directory, Firebase won’t serve your React app.

Solution

  1. Open your firebase.json file.

  2. Find the "public" property inside the "hosting" section.

  3. Change it to:

    "public": "dist"
    

    If you are using Vite, the default build output is "dist". If you're using Create React App, use "build" instead.


Step 2: Build Your React App

Before deploying, ensure your project is built properly. Run:

npm run build

For Vite projects, use:

npm run build && cd dist

Step 3: Deploy Again

Once the correct folder is set and your project is built, deploy again:

firebase deploy

Now, your ReactJS website should display correctly! 🚀

If issues persist, check:
✅ Console errors in the browser
✅ Firebase Hosting logs using firebase hosting:channel:logs
✅ That your React app correctly references assets using relative paths

Hope this helps! 🎉

Comments

Popular posts from this blog

Depression is a bridge off the root of rejection

The statement "Depression is a bridge off the root of rejection" suggests that depression can often stem from a deeper sense of rejection and emotional hurt and that this rejection acts as the foundational root for depressive episodes. To expound on this, it’s helpful to break down the metaphor and understand how rejection can play a significant role in triggering depression : 1. Rejection as a Root What is Rejection? Rejection refers to the act of being dismissed, excluded, or not accepted by others. It could come in many forms, such as: Relational rejection : From family, friends, or romantic partners. Social rejection : From peers, groups, or communities. Professional rejection : Failing to meet job expectations or being denied opportunities. Self-rejection : Internalizing negative feelings and self-worth, rejecting one's own value. How Rejection Can Affect Mental Health Rejection is a deep emotional wound because humans are inherently social beings who desire acce...

Understanding how different emotional roots lead to certain outcomes or experiences

In the context of emotional, psychological, and spiritual growth, the concept of a bridge can be a powerful metaphor for understanding how different emotional roots lead to certain outcomes or experiences. Beyond the bridge from rejection to depression, there are several other significant bridges in our emotional and spiritual lives: 1. Bridge from Trauma to Fear Trauma is often the root of fear. People who have experienced significant trauma, whether it be physical, emotional, or psychological, frequently develop fears as a protective mechanism. Fear can manifest in many forms—fear of vulnerability, fear of trust, or fear of loss. For example, someone who experienced abandonment in childhood might develop a fear of intimacy, leading to avoidance of close relationships as an adult. Key Effects : Anxiety, hypervigilance, and avoidance behaviors often stem from trauma, crossing the bridge into fear-based responses to life. 2. Bridge from Shame to Isolation Shame is a deep-rooted feel...

Who I Am in the Lord: Daily Confession

Here are some powerful confessions that reflect your identity in the Lord, based on biblical truths: Who I Am in the Lord I am a Child of God "I am a child of God, adopted into His family, and I belong to Him." (John 1:12) I am Forgiven "I am forgiven of all my sins; my past does not define me." (Ephesians 1:7) I am Redeemed "I am redeemed by the blood of Jesus, set free from the bondage of sin." (Galatians 3:13) I am a New Creation "I am a new creation in Christ; the old has passed away." (2 Corinthians 5:17) I am Loved "I am deeply loved by God, no matter my circumstances." (Romans 5:8) I am Chosen "I am chosen by God, set apart for His purposes." (1 Peter 2:9) I am Heir to His Promises "I am an heir to the promises of God; all His blessings are mine." (Romans 8:17) I am Strong in the Lord "I am strong in the Lord and in His mighty power." (Ephesians 6:10) I am Healed ...