1
0
mirror of synced 2025-12-23 11:54:18 -05:00

Redirect github-ae to enterprise-cloud or fpt or home page (#43460)

This commit is contained in:
Peter Bengtsson
2024-01-16 07:53:28 -05:00
committed by GitHub
parent 454abd829f
commit 3b28c167a7
14 changed files with 284 additions and 59 deletions

View File

@@ -49,6 +49,10 @@ const plans = [
openApiBaseName: 'ghes-',
miscBaseName: 'ghes-',
},
// github-ae is gone, but we need to keep it in the array
// for the validation of front matter when it checks the `versions`
// keys.
// All requests for github-ae@latest will be redirected in getRedirect().
{
plan: 'github-ae',
planTitle: 'GitHub AE',
@@ -132,4 +136,14 @@ export function getOpenApiVersion(version) {
return allVersions[version].openApiVersionName
}
export const allTestableVersions = Object.keys(allVersions).filter(
// Because of the deprecation of GHAE we can't delete it from `allVersions`
// until ALL cleaning up is done. Since we're now always redirecting
// all requests for `.../github-ae@latest/...` we also shouldn't test it.
// Other end-to-end tests will test the redirects of that legacy.
// The day `github-ae@latest` is no longer in all-versions.js
// this filtering can be deleted.
(version) => version !== 'github-ae@latest',
)
export { allVersions }