From 85be44422854a7d8d58860449a6dde4b6dc46633 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 11 Jun 2020 12:07:56 +0200 Subject: [PATCH] docs: add redirects for cli generated config files With this change we add redirects for config files generated by the Angular CLI. These links form part of a comment in the generated files, thus it is important that they valid for the many years to come. --- aio/firebase.json | 7 ++++++- aio/ngsw-config.json | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/aio/firebase.json b/aio/firebase.json index 452e324f548a2..752e81bde257c 100644 --- a/aio/firebase.json +++ b/aio/firebase.json @@ -122,7 +122,12 @@ // Strip off the `.html` extension, because Firebase will not do this automatically any more // (unless the new URL points to an existing file, which is not necessarily the case here). {"type": 301, "source": "/:somePath*/:file.html", "destination": "/:somePath*/:file"}, - {"type": 301, "source": "/:topLevelFile.html", "destination": "/:topLevelFile"} + {"type": 301, "source": "/:topLevelFile.html", "destination": "/:topLevelFile"}, + + // The below paths are referenced in users projects generated by the CLI + {"type": 301, "source": "/config/tsconfig", "destination": "/guide/typescript-configuration"}, + {"type": 301, "source": "/config/solution-tsconfig", "destination": "https://devblogs.microsoft.com/typescript/announcing-typescript-3-9/#solution-style-tsconfig"}, + {"type": 301, "source": "/config/app-package-json", "destination": "https://webpack.js.org/configuration/optimization/#optimizationsideeffects"} ], "rewrites": [ { diff --git a/aio/ngsw-config.json b/aio/ngsw-config.json index d5bb29fbac4a5..c3977373aafb2 100644 --- a/aio/ngsw-config.json +++ b/aio/ngsw-config.json @@ -147,6 +147,7 @@ "!/styleguide", "!/styleguide/**", "!/testing", - "!/testing/**" + "!/testing/**", + "!/config/**" ] }