docs: add redirects for cli generated config files (#37533)
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. PR Close #37533
This commit is contained in:
parent
7cc7955b5d
commit
8dcf618411
|
@ -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": [
|
||||
{
|
||||
|
|
|
@ -147,6 +147,7 @@
|
|||
"!/styleguide",
|
||||
"!/styleguide/**",
|
||||
"!/testing",
|
||||
"!/testing/**"
|
||||
"!/testing/**",
|
||||
"!/config/**"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue