I have a website configured through Firebase Hosting. I'm using adaptive web design technique to serve a different html file for desktop vs. mobile devices. Essentially, I have two different html files, that are responsive, but I wanted to serve one on desktop and one on mobile. Is there a way to configure the firebase.json file to do this? Right now, I just have my website serving the index.html file, which is the desktop version. To get to the mobile version, I must add the "mobile.html" at the end of the url.
Here's my json file currently.
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}