|
4 | 4 | * SPDX-License-Identifier: BSD-3-Clause
|
5 | 5 | */
|
6 | 6 |
|
7 |
| -export const pageRedirects = new Map( |
8 |
| - [ |
9 |
| - ['/slack-invite/', 'https://join.slack.com/t/lit-and-friends/shared_invite/zt-llwznvsy-LZwT13R66gOgnrg12PUGqw'], |
10 |
| - ] |
11 |
| -) |
| 7 | +// prettier-ignore |
| 8 | +export const pageRedirects = new Map([ |
| 9 | + ['/slack-invite', 'https://join.slack.com/t/lit-and-friends/shared_invite/zt-llwznvsy-LZwT13R66gOgnrg12PUGqw'], |
| 10 | + |
| 11 | + ['/msg/dev-mode', '/docs/tools/development/#development-and-production-builds'], |
| 12 | + // TODO(sorvell) https://github.com/lit/lit.dev/issues/455 |
| 13 | + ['/msg/multiple-versions', '/docs/tools/requirements/'], |
| 14 | + ['/msg/polyfill-support-missing', '/docs/tools/requirements/#polyfills'], |
| 15 | + // TODO(sorvell) https://github.com/lit/lit.dev/issues/462 |
| 16 | + ['/msg/class-field-shadowing', '/docs/components/properties/#declare'], |
| 17 | + // TODO(aomarks) Should we add something specifically about this issue? |
| 18 | + ['/msg/change-in-update', '/docs/components/properties/#when-properties-change'], |
| 19 | + ['/msg/deprecated-import-path', '/docs/releases/upgrade/#update-packages-and-import-paths'], |
| 20 | + ['/msg/removed-api', '/docs/releases/upgrade/#litelement'], |
| 21 | + ['/msg/renamed-api', '/docs/releases/upgrade/#update-to-renamed-apis'], |
| 22 | + ['/msg/undefined-attribute-value', '/docs/releases/upgrade/#litelement'], |
| 23 | + ['/msg/request-update-promise', '/docs/releases/upgrade/#litelement'], |
| 24 | +].map(([path, redir]) => [ |
| 25 | + // Trailing slashes are required because this redirect map is consulted after |
| 26 | + // standard lit.dev path canonicalization. |
| 27 | + path.match(/\/[^\/\.]+$/) ? path + '/' : path, |
| 28 | + redir, |
| 29 | +])); |
0 commit comments