Skip to content

Commit

Permalink
Add docs about nextRuntime for custom webpack
Browse files Browse the repository at this point in the history
This variable is exported by next but undocumented, and its usage is necessary to build auxiliary scripts for your server-side applications. See vercel#36237 (comment) for an example.
  • Loading branch information
CGamesPlay authored May 4, 2022
1 parent 2012f4e commit 74b051f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/api-reference/next.config.js/custom-webpack-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ The second argument to the `webpack` function is an object with the following pr
- `buildId`: `String` - The build id, used as a unique identifier between builds
- `dev`: `Boolean` - Indicates if the compilation will be done in development
- `isServer`: `Boolean` - It's `true` for server-side compilation, and `false` for client-side compilation
- `nextRuntime`: `String` - The target runtime for server-side compilation; either `"edge"` or `"nodejs"`
- `defaultLoaders`: `Object` - Default loaders used internally by Next.js:
- `babel`: `Object` - Default `babel-loader` configuration

Expand Down

0 comments on commit 74b051f

Please sign in to comment.