Unable to deploy firebase project to custom domain

Viewed 1654
  • Took a free domain on freenom
  • Linked it successfully with a project on firebase
  • Added a target name to the domain
  • Added the target to firebase.json
  • on running firebase deploy Error : HTTP Error 404

Could someone point out what i'm doing wrong cause I followed all the steps on the firebase website but still am unable to get it running. The HTML file I want to host just has a H1 tag with "Hello World".

1 Answers

You do not require any special steps to deploy the site on custom website. Once your site is up on the default domain. Then the website gets automatically replicated on you connected custom domain. Hope this helps you.

This is my firebase.json file:

{
  "hosting": {
    "public": "public",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}
Related