d07e736f17
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 |
||
---|---|---|
.. | ||
contributors | ||
audit-web-app.js | ||
build-404-page.js | ||
build-artifacts.sh | ||
build-ngsw-config.js | ||
check-environment.js | ||
create-preview.js | ||
deploy-to-firebase.js | ||
deploy-to-firebase.spec.js | ||
payload.sh | ||
test-aio-a11y.js | ||
test-external-urls.js | ||
test-preview.js | ||
test-production.sh |