* remove outdated and redundant context.enterpriseVersions and add new context.enterpriseServerVersions * update references from context.enterpriseVersions -> context.enterpriseServerReleases * add test * also test oldest supported enterprise version in addition to the latest * Script to update not-free-pro-team conditionals (#16060) * script to update not-free-pro-team conditionals * change string to regex so we can do replace all * remove stray test.only * Update middleware/context.js Co-authored-by: James M. Greene <JamesMGreene@github.com> * Update tests/unit/page.js Co-authored-by: James M. Greene <JamesMGreene@github.com> * Update tests/unit/page.js Co-authored-by: James M. Greene <JamesMGreene@github.com> * Update tests/fixtures/page-versioned-for-all-enterprise-releases.md Co-authored-by: James M. Greene <JamesMGreene@github.com> Co-authored-by: James M. Greene <JamesMGreene@github.com>
Middleware
Each file in this directory exports an Express Middleware function.
For more info, see https://expressjs.com/en/guide/using-middleware.html
Subdirectories
There are subdirectories for different types of middleware:
- contextualizers modify the
req.contextobject that is used to render pages. - redirects handle... redirects!