1
0
mirror of synced 2026-01-06 15:01:04 -05:00

Create & migrate a subject folder for Redirects (#39052)

This commit is contained in:
Tina Barfield
2023-07-17 09:50:04 -04:00
committed by GitHub
parent 36c2210f8c
commit 0e1dc7862a
40 changed files with 69 additions and 63 deletions

View File

@@ -11,5 +11,5 @@
# need these legacy redirects. Only the redirects from
# front-matter will be at play.
# These static redirects json files are notoriously large
echo '[]' > lib/redirects/static/archived-frontmatter-valid-urls.json
echo '{}' > lib/redirects/static/archived-redirects-from-213-to-217.json
echo '[]' > src/redirects/lib/static/archived-frontmatter-valid-urls.json
echo '{}' > src/redirects/lib/static/archived-redirects-from-213-to-217.json

View File

@@ -12,7 +12,7 @@ import { JSONFile } from 'lowdb/node'
import shortVersions from '../../middleware/contextualizers/short-versions.js'
import contextualize from '../../middleware/context.js'
import features from '../../middleware/contextualizers/features.js'
import getRedirect from '../../lib/get-redirect.js'
import getRedirect from '../../src/redirects/lib/get-redirect.js'
import warmServer from '../../lib/warm-server.js'
import { liquid } from '../../src/content-render/index.js'
import { deprecated } from '../../lib/enterprise-server-releases.js'

View File

@@ -53,6 +53,7 @@ jobs:
{ name: 'linting', path: 'src/content-linter/tests', },
{ name: 'observability', path: 'src/observability/tests' },
{ name: 'pageinfo', path: 'src/pageinfo/tests', },
{ name: 'redirects', path: 'src/redirects/tests', },
{ name: 'rendering', path: 'tests/rendering', },
{ name: 'rendering-fixtures', path: 'tests/rendering-fixtures', },
{ name: 'rest', path: 'src/rest/tests', },