-
Notifications
You must be signed in to change notification settings - Fork 89
feat: add docs on middleware #795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4cd3894
to
96c6117
Compare
96c6117
to
5270b1d
Compare
docs/middleware.md
Outdated
@@ -0,0 +1,76 @@ | |||
# Using Next 12 middleware on Netlify | |||
|
|||
Next 12 introduces a new feature called [middleware](https://nextjs.org/docs/middleware), which are functions that are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next 12 introduces a new feature called [middleware](https://nextjs.org/docs/middleware), which are functions that are | |
Next 12 introduces a new feature called [Middleware](https://nextjs.org/docs/middleware), which are functions that are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MelanieCrissey Would the section title need to change too?
Using Next 12 Middleware on Netlify
Sounds like we're wanting it capitalized when it refers to the feature itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some docs-related feedback. Thanks for writing this up!
docs/middleware.md
Outdated
@@ -0,0 +1,76 @@ | |||
# Using Next 12 middleware on Netlify | |||
|
|||
Next 12 introduces a new feature called [middleware](https://nextjs.org/docs/middleware), which are functions that are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MelanieCrissey Would the section title need to change too?
Using Next 12 Middleware on Netlify
Sounds like we're wanting it capitalized when it refers to the feature itself
Next 12 Middleware works out of the box with Netlify, and most functions will work unchanged. See | ||
[the middleware docs](https://nextjs.org/docs/middleware) for details of how to create them. There are however a few | ||
workarounds that are currently required for some features during the beta period: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor edits (assuming these are Netlify functions in the first line)
Next 12 Middleware works out of the box with Netlify, and most functions will work unchanged. See | |
[the middleware docs](https://nextjs.org/docs/middleware) for details of how to create them. There are however a few | |
workarounds that are currently required for some features during the beta period: | |
Next 12 Middleware works out of the box with Netlify, and most Netlify functions will work unchanged. Refer to | |
[the middleware docs](https://nextjs.org/docs/middleware) for details of how to create middleware functions. There are, however, a few | |
workarounds that are currently required for some features during the beta period: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, these are middleware functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it may be good to specify that - for extreme clarity 😄
Co-authored-by: Rachael Stavchansky <rachael@netlify.com>
Summary
Adds some docs on using Next 12 middleware on Netlify.
Rendered version
Fixes #775