docs/middleware
Peter Bengtsson 77bfe49215
don't record temporary redirects (#25668)
2022-02-25 13:45:31 -05:00
..
contextualizers Don't show hidden items with '/articles' (#25441) 2022-02-16 23:28:01 +00:00
redirects Decouple redirects from language (#24597) 2022-02-14 20:19:10 +00:00
README.md Hello git history spelunker! 2020-09-27 14:10:11 +02:00
abort.js statsd increments on middleware.abort and middleware.timeout (#23003) 2021-11-19 12:04:54 -05:00
archived-asset-redirects.js archived asset redirects (#25025) 2022-02-04 16:32:01 +00:00
archived-enterprise-versions-assets.js support archived enterprise assets (#25224) 2022-02-11 15:58:05 -05:00
archived-enterprise-versions.js denormalize archived-redirects-from-213-to-217.json by language (#24996) 2022-02-09 18:58:34 +00:00
asset-preprocessing.js cache asset images more aggressively (#23553) 2021-12-10 13:01:48 +00:00
block-robots.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
cache-control.js serve /apple-touch-icon.png (#25371) 2022-02-15 21:35:08 +00:00
categories-for-support.js cache /categories.json (#23635) 2021-12-13 21:30:38 +00:00
connect-datadog.js Use the same tags across connect-datadog and hot-shots (#24741) 2022-01-27 21:31:35 +00:00
context.js unbreak thinking the site's in AIRGAP mode (#24863) 2022-02-01 14:30:14 +00:00
cookie-parser.js Remove `import x` statements (#20594) 2021-07-29 20:28:30 +00:00
cors.js Remove `import x` statements (#20594) 2021-07-29 20:28:30 +00:00
csp.js don't allow data: in script-src (#24730) 2022-01-27 18:28:00 +00:00
csrf.js Remove `import x` statements (#20594) 2021-07-29 20:28:30 +00:00
detect-language.js fix: detect language error on /_next/data/ input (#22419) 2021-10-26 21:03:47 +00:00
events.js use got to send to Hydro (#23286) 2021-12-02 04:30:44 +00:00
favicons.js serve /apple-touch-icon.png (#25371) 2022-02-15 21:35:08 +00:00
featured-links.js Add support for videos to landing pages (#23801) 2021-12-17 11:09:00 -06:00
find-page.js Decouple redirects from language (#24597) 2022-02-14 20:19:10 +00:00
halt-on-dropped-connection.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
handle-csrf-errors.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
handle-errors.js support archived enterprise assets (#25224) 2022-02-11 15:58:05 -05:00
handle-invalid-paths.js add more invalid paths for /_next/data (#22423) 2021-10-26 23:04:31 +00:00
handle-next-data-path.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
healthz.js Add /healthz endpoint for liveness / readiness probe (#23716) 2021-12-14 21:24:10 +00:00
index.js make sure req.ip becomes correct (#25628) 2022-02-24 17:54:09 +00:00
learning-track.js Only interested in current version's guides (#22535) 2021-11-02 12:04:04 -05:00
loaderio-verification.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
next.js Next v12 (#24082) 2022-01-07 18:34:10 +00:00
package.json Migrate CommonJS to ESM (#20301) 2021-07-14 13:49:18 -07:00
rate-limit.js Enable rate limiting (#25642) 2022-02-24 23:58:01 +00:00
record-redirect.js don't record temporary redirects (#25668) 2022-02-25 13:45:31 -05:00
remote-ip.js formate /_ip with JSON instead (#25574) 2022-02-23 17:58:39 +00:00
render-page.js cache individual renderContent instead of page.render (#24955) 2022-02-03 16:56:05 +00:00
req-utils.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
robots.js Robots update (#23046) 2021-11-23 18:56:05 +00:00
search.js handle search with colon (#25128) 2022-02-15 21:56:50 +00:00
set-fastly-cache-headers.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
set-fastly-surrogate-key.js use manual surrogate key for nextjs static assets (#25096) 2022-02-08 00:01:38 +00:00
spot-content-flaws.js spot-content-flaws middleware (#23451) 2021-12-15 20:21:15 +00:00
static-asset-caching.js use manual surrogate key for nextjs static assets (#25096) 2022-02-08 00:01:38 +00:00
timeout.js too often we don't know the path of 503'ing requests (#23744) 2021-12-15 17:25:32 +00:00
trigger-error.js Upgrade Primer CSS to version 17, removing marketing styles (#20965) 2021-08-31 14:49:39 -07:00

README.md

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: