Хотелось бы узнать, есть ли способ использовать функции response-router-dom и firebase. Например, часть React имеет несколько ссылок, таких как mywebsite.com/pageone, mywebsite.com/pagetwo, mywebsite.com/pagethree. Я хочу добавить ссылку mywebsite.com/api, которая поступает из функции firebase. Я посмотрел документацию Firebase, но она показывает только для того или другого. Это возможно? Вот это firebase.json
{
"hosting": {
"public": "build",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
},
{
"source": "/app/api",
"function": "app"
}
]
}
}