angular-docs-cn/aio/tests/deployment/shared
George Kalpakas d07e736f17 build(docs-infra): auto-generate SW `navigationUrls` from Firebase config (#42452)
Previously, redirects had to be configured in both the Firebase config
(`firebase.json`) and the ServiceWorker config (`ngsw-config.json`).
This made it challenging to correctly configure redirects, since one had
to understand the different formats of the two configs, and was also
prone to getting out-of-sync configs.

This commit simplifies the process of adding redirects by removing the
need to update the ServiceWorker config (`ngsw-config.json`) and keep it
in sync with the Firebase config (`firebase.json`). Instead the
ServiceWorker `navigationUrls` are automatically generated from the list
of redirects in the Firebase config.

NOTE:
Currently, the automatic generation only supports the limited set of
patterns that are necessary to translate the existing redirects. It can
be made more sophisticated in the future, should the need arise.

PR Close #42452
2021-06-18 17:32:58 +00:00
..
URLS_TO_REDIRECT.txt build(docs-infra): add missing redirect rule for `api/http` in `firebase.json` (#42452) 2021-06-18 17:32:58 +00:00
cjson.d.ts build(docs-infra): make type-checking stricter by enabling `noImplicitAny` (#29926) 2019-04-25 12:32:49 -07:00
helpers.ts build(docs-infra): auto-generate SW `navigationUrls` from Firebase config (#42452) 2021-06-18 17:32:58 +00:00