"rewrites": [
{
"regex": "/example/.*",
"function": "myFunction"
},
{
"source": "**",
"destination": "/index.html"
}
]
Suppose my host is https://test.co
So, on hitting the URL- https://test.co/example/example.com/?a=1&b=90
Firebase should invoke myFunction which looks like this:
app.get(/\/example\/(.+)/, (req, res) => {
const url=req.params[0]
})
Here req.params contains only example.com and the query strings are stripped off in the node function. req.params returns just example.com/
How do I ensure that query params are not stripped off and I would be able to access them in myFunction?