Unverified Commit 060812a1 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Revert "Adds note about custom server requirements" (#39956)

Reverts vercel/next.js#39931

Let's instead add this to the custom server documentation, in a section on "Using Middleware". Since such a low percentage of folks eject out of the default server, this shouldn't be so high up on the Middleware docs page. 
parent 53ecdd12
...@@ -21,8 +21,6 @@ Middleware runs _before_ cached content, so you can personalize static files and ...@@ -21,8 +21,6 @@ Middleware runs _before_ cached content, so you can personalize static files and
> **Note:** If you were using Middleware prior to `12.2`, please see the [upgrade guide](https://nextjs.org/docs/messages/middleware-upgrade-guide). > **Note:** If you were using Middleware prior to `12.2`, please see the [upgrade guide](https://nextjs.org/docs/messages/middleware-upgrade-guide).
> **Note:** If you are using a [custom server](https://nextjs.org/docs/advanced-features/custom-server) you must provide `hostname` and `port` when calling `next` i.e `next({ hostname: 'localhost', port: 3000 })`.
## Using Middleware ## Using Middleware
To begin using Middleware, follow the steps below: To begin using Middleware, follow the steps below:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment