From 0b9c4245f957bfb52180a4e2e3a16d88b871c36e Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Fri, 10 Jan 2020 16:40:58 +0200 Subject: [PATCH] refactor(docs-infra): simplify Firebase redirect config (#34726) This simplifies the Firebase redirect config, removing a redundant pattern (`/api/http`) which is covered by the previous pattern and dropping an unused named captured segment (`:rest*`). This change does not affect the redirection behavior for the deployed apps, but allows the Firebase hosting emulator to work correctly. (See [here][1] for more info.) NOTE: Although we are not currently using the Firebase emulator for development/testing, we might want to use it in the future. [1]: https://github.com/firebase/superstatic/issues/231#issuecomment-573034515 PR Close #34726 --- aio/firebase.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aio/firebase.json b/aio/firebase.json index 2fa581eb1a..d8058570ea 100644 --- a/aio/firebase.json +++ b/aio/firebase.json @@ -56,8 +56,7 @@ {"type": 301, "source": "/**/api/common/NgModel", "destination": "/api/forms/NgModel"}, // `@angular/http` package was removed, and new `HttpClient` APIs are available under `@angular/common/http` package - {"type": 301, "source": "/api/http/:rest*", "destination": "/guide/deprecations#http"}, - {"type": 301, "source": "/api/http", "destination": "/guide/deprecations#http"}, + {"type": 301, "source": "/api/http/**", "destination": "/guide/deprecations#http"}, // Animations moves, renames and removals {"type": 301, "source": "/api/animate/:rest*", "destination": "/api/animations/:rest*"},