Create & migrate a subject folder for Redirects (#39052)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@@ -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', },
|
||||
|
||||
Reference in New Issue
Block a user