* Update render-page.js * Update render-page.js * Update render-page.js * Update render-page.js * Consistently use const path = req.pagePath || req.path * Update render-page.js * Run memory cache even on test and CI * feedbacked * Add an exception for caching the GraphQL Explorer See https://github.com/github/docs-internal/pull/19611 * pretty-fy Co-authored-by: Peter Bengtsson <mail@peterbe.com> Co-authored-by: Rachael Sewell <rachmari@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!