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
Update docs related to React 18 #35952
Conversation
Co-authored-by: Steven <steven@ceriously.com>
@@ -0,0 +1,34 @@ | |||
# Switchable Runtime (Alpha) | |||
|
|||
By default, Next.js uses Node.js as the runtime for page rendering, including pre-rendering, server-side rendering. |
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.
By default, Next.js uses Node.js as the runtime for page rendering, including pre-rendering, server-side rendering. | |
By default, Next.js uses Node.js as the runtime for page rendering, including pre-rendering and server-side rendering. |
|
||
This option determines which runtime should be used as the default rendering runtime for all pages. | ||
|
||
## Per-page Runtime Option |
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.
## Per-page Runtime Option | |
## Page Runtime Option |
export const config = { | ||
runtime: 'nodejs', | ||
} | ||
``` |
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.
Does this config also work for /pages/api/**
?
As per the feedback in #35952. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
* update docs of streaming * add switchable runtime docs * add page to manifest * Apply suggestions from code review Co-authored-by: Steven <steven@ceriously.com> * Update docs/advanced-features/react-18/streaming.md Co-authored-by: Lee Robinson <me@leerob.io> Co-authored-by: Steven <steven@ceriously.com>
As per the feedback in vercel#35952. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
Bug
fixes #number
contributing.md
Feature
fixes #number
contributing.md
Documentation / Examples
yarn lint