When I try to call a rewrited route to a Run Container I got a not found
page.
If I call this Run Container from it's URL it's working fine so I think it's something I'm missing or maybe a bug with rewrites.
Here's my firebase.json
config:
"hosting": [
{
"public": "wiki/api",
"target": "api",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/",
"destination": "/index.html"
},
{
"source": "/admin{,/**}",
"function": {
"functionId": "admin",
"region": "southamerica-east1"
}
},
{
"source": "/gotenberg{,/**}", // this is the rewrite that's not working
"run": {
"serviceId": "gotenberg",
"region": "southamerica-east1"
}
},
{
"source": "/**",
"function": {
"functionId": "api",
"region": "southamerica-east1"
}
}
]
}
All my other rewrites are working fine. I think it's because I'm rewriting to Functions (even if all functions are in v2 and they are showing inside Cloud Run section on console).
What am I missing?