2017-01-27 03:20:51 -05:00
|
|
|
{
|
|
|
|
"database": {
|
|
|
|
"rules": "database.rules.json"
|
|
|
|
},
|
|
|
|
"hosting": {
|
|
|
|
"public": "dist",
|
2017-03-21 09:46:20 -04:00
|
|
|
"cleanUrls": true,
|
2017-04-19 11:32:55 -04:00
|
|
|
"redirects": [
|
2018-01-09 10:41:00 -05:00
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// README:
|
|
|
|
// Redirects must also be handled by the ServiceWorker. If you add a redirect rule here,
|
|
|
|
// make sure the routing RegExp in `ngsw-manifest.json` is updated accordingly.
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-01-24 18:53:57 -05:00
|
|
|
// cli-quickstart.html, glossary.html, quickstart.html, server-communication.html, style-guide.html
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/cli-quickstart.html", "destination": "/guide/quickstart"},
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/glossary.html", "destination": "/guide/glossary"},
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/quickstart.html", "destination": "/guide/quickstart"},
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/guide/server-communication.html", "destination": "/guide/http"},
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/guide/style-guide.html", "destination": "/guide/styleguide"},
|
2017-04-19 11:32:55 -04:00
|
|
|
|
2018-01-24 18:53:57 -05:00
|
|
|
// guide/cli-quickstart, styleguide
|
2017-08-02 18:54:22 -04:00
|
|
|
{"type": 301, "source": "/guide/cli-quickstart", "destination": "/guide/quickstart"},
|
2018-01-24 18:53:57 -05:00
|
|
|
{"type": 301, "source": "/styleguide", "destination": "/guide/styleguide"},
|
2017-04-19 11:32:55 -04:00
|
|
|
|
2018-01-24 18:53:57 -05:00
|
|
|
// cookbook/a1-a2-quick-reference.html, cookbook/component-communication.html, cookbook/dependency-injection.html
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/cookbook/a1-a2-quick-reference.html", "destination": "/guide/ajs-quick-reference"},
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/cookbook/component-communication.html", "destination": "/guide/component-interaction"},
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/cookbook/dependency-injection.html", "destination": "/guide/dependency-injection-in-action"},
|
2017-04-19 11:32:55 -04:00
|
|
|
|
2018-01-24 18:53:57 -05:00
|
|
|
// cookbook, cookbook/, cookbook/index.html
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/cookbook", "destination": "/docs"},
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/cookbook/", "destination": "/docs"},
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/cookbook/index.html", "destination": "/docs"},
|
2017-06-13 08:51:41 -04:00
|
|
|
|
2018-01-24 18:53:57 -05:00
|
|
|
// cookbook/*.html
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/cookbook/:cookbook.html", "destination": "/guide/:cookbook"},
|
2017-11-02 17:34:21 -04:00
|
|
|
|
2018-01-24 18:53:57 -05:00
|
|
|
// docs/ts/latest/api/<package>/index/*-<type>.html (+ special case for `NgFor` which has been renamed)
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/api/common/index/NgFor-directive.html", "destination": "/api/common/NgForOf"},
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/api/:package/index/:api-*.html", "destination": "/api/:package/:api"},
|
2017-12-06 21:12:19 -05:00
|
|
|
|
2018-01-24 18:53:57 -05:00
|
|
|
// docs/ts/latest
|
|
|
|
{"type": 301, "source": "/docs/ts/latest", "destination": "/docs"},
|
2018-01-11 15:38:51 -05:00
|
|
|
|
2018-01-24 18:53:57 -05:00
|
|
|
// guide/*, tutorial/*, **/*
|
|
|
|
{"type": 301, "source": "/docs/ts/latest/:any*", "destination": "/:any*"},
|
2018-01-23 12:43:58 -05:00
|
|
|
|
2018-01-24 18:53:57 -05:00
|
|
|
// aot-compiler.md and metadata.md combined into aot-compiler.md - issue #19510
|
2018-01-23 12:43:58 -05:00
|
|
|
{"type": 301, "source": "/guide/metadata", "destination": "/guide/aot-compiler"},
|
2018-01-24 18:53:57 -05:00
|
|
|
|
|
|
|
// ngmodule.md renamed to ngmodules.md
|
2018-01-23 12:43:58 -05:00
|
|
|
{"type": 301, "source": "/guide/ngmodule", "destination": "/guide/ngmodules"},
|
2018-01-24 18:53:57 -05:00
|
|
|
|
|
|
|
// service-worker-getstart.md, service-worker-comm.md, service-worker-configref.md
|
|
|
|
{"type": 301, "source": "/guide/service-worker-getstart", "destination": "/guide/service-worker-getting-started"},
|
|
|
|
{"type": 301, "source": "/guide/service-worker-comm", "destination": "/guide/service-worker-communications"},
|
|
|
|
{"type": 301, "source": "/guide/service-worker-configref", "destination": "/guide/service-worker-config"}
|
2017-04-19 11:32:55 -04:00
|
|
|
],
|
2017-03-13 12:35:16 -04:00
|
|
|
"rewrites": [
|
|
|
|
{
|
2017-03-22 18:31:47 -04:00
|
|
|
"source": "**/!(*.*)",
|
2017-03-21 09:46:20 -04:00
|
|
|
"destination": "/index.html"
|
2017-03-13 12:35:16 -04:00
|
|
|
}
|
2017-07-17 16:48:35 -04:00
|
|
|
],
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"source": "/",
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"key": "Link",
|
|
|
|
"value": "</generated/navigation.json>;rel=preload;as=fetch,</generated/docs/index.json>;rel=preload;as=fetch"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2017-03-13 12:35:16 -04:00
|
|
|
]
|
2017-01-27 03:20:51 -05:00
|
|
|
}
|
|
|
|
}
|