Update middleware documentation for custom server#33535
Merged
kodiakhq[bot] merged 4 commits intovercel:canaryfrom Jan 21, 2022
Merged
Update middleware documentation for custom server#33535kodiakhq[bot] merged 4 commits intovercel:canaryfrom
kodiakhq[bot] merged 4 commits intovercel:canaryfrom
Conversation
Upgrading from 12.0.0 to 12.0.8 results in `[dev] error - Error: To use middleware you must provide a `hostname` and `port` to the Next.js Server` and this requirement did not seem to be documented anywhere.
styfle
reviewed
Jan 21, 2022
styfle
reviewed
Jan 21, 2022
Contributor
styfle
left a comment
There was a problem hiding this comment.
Adding @javivelasco as a reviewer since it looks like this error was introduced in #32368
javivelasco
previously approved these changes
Jan 21, 2022
Co-authored-by: Steven <steven@ceriously.com>
ijjk
previously approved these changes
Jan 21, 2022
ijjk
approved these changes
Jan 21, 2022
leerob
reviewed
Jan 22, 2022
|
|
||
| ## Custom Server | ||
|
|
||
| When using a custom server with middleware, you must specify the hostname and port when instantiating your `NextApp`. |
Contributor
There was a problem hiding this comment.
I wonder if this should be moved to the Custom Server docs, since it only applies to a very small segment of Next.js users who are ejecting for a custom server.
1 task
kodiakhq Bot
pushed a commit
that referenced
this pull request
Jan 27, 2022
This moves the note about custom server handling for middleware to the custom server document. ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint` x-ref: #33535 (comment)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrading from 12.0.0 to 12.0.8 results in
[dev] error - Error: To use middleware you must provide ahostnameandportto the Next.js Serverand this requirement did not seem to be documented anywhere. Fixes #33450 which seems to have been erroneously closed.Bug
fixes #numbercontributing.mdFeature
fixes #numbercontributing.mdDocumentation / Examples
yarn lint