I want to use Firebase Hosting to host an angular application, and I need to create a redirect to some old files in a different URL.
According to Firebase documentation you can do basic redirects
"redirects": [ { "source" : "/foo", "destination" : "/bar", "type" : 301 }, { "source" : "/firebase/*", "destination" : "https://www.firebase.com", "type" : 302 } ]
But I need a lookup redirection
"redirects": [ { "source" : "/config/*", "destination" : "//oldsiteurl/config/[match-request]", "type" : 302 }]
So basically I need myapp.firebase.com/config/some.json to myapp.firebase.com/config/some.json redirected to //oldsiteurl/config/some.json . I have a lot of json files, so I donβt want to match file by file.
Do you know if this is possible?
Thanks!
source share