firebase.json cancel redirect and make landing page the root again

101 views
Skip to first unread message

Steve Harrington

unread,
Dec 12, 2022, 2:39:10 PM12/12/22
to Firebase Google Group
I configured my firebase.json in the following way
------
{
  "firestore": {
    "rules": "firestore.rules",
    "indexes": "firestore.indexes.json"
  },
  "functions": {
    "predeploy": [
      "npm --prefix \"$RESOURCE_DIR\" run lint"
    ]
  },
  "hosting": {
    "public": "dist",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
  "redirects": [ {
    "source": "/",
    "destination": "https://elearning.igeddit.ca/maintenance/",
    "type": 301
  } ]

  }
}
----
That worked fine, it redirected to maintenance. But now I want the landing page to just be the root again, "https://elearning.igeddit.ca"...how do I do this. My site keeps going to the maintenance page.

Thanks

Kato Richardson

unread,
Dec 12, 2022, 2:44:49 PM12/12/22
to fireba...@googlegroups.com
Hi Steve,

I presume you deleted the redirects section and ran `firebase deploy`? Did you see any errors in the CLI? If not, could you enable debugging and see if there is anything interesting in the logs?

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0b5dc18c-c9d8-4f3e-8d02-f44827c46ddbn%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Steve Harrington

unread,
Dec 12, 2022, 10:18:53 PM12/12/22
to Firebase Google Group
Thanks for the reply, Kato. As it turns out, I simply had to clear my cache to see my site no longer re-directing. Don't know if that means anyone who has visited my site also needs to clear their cache. That was the solution.
Reply all
Reply to author
Forward
0 new messages