Unverified Commit fa02b197 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Fix typo in source maps documentation. (#22952)

parent 7f1800e1
...@@ -4,7 +4,7 @@ description: Enables browser source map generation during the production build. ...@@ -4,7 +4,7 @@ description: Enables browser source map generation during the production build.
# Source Maps # Source Maps
Source Maps are enabled by default during development. During production builds they are disabled as generation source maps can significantly increase build times and memory usage while being generated. Source Maps are enabled by default during development. During production builds, they are disabled as generating source maps can significantly increase build times and memory usage while being generated.
Next.js provides a configuration flag you can use to enable browser source map generation during the production build: Next.js provides a configuration flag you can use to enable browser source map generation during the production build:
...@@ -15,9 +15,9 @@ module.exports = { ...@@ -15,9 +15,9 @@ module.exports = {
} }
``` ```
When the `productionBrowserSourceMaps` option is enabled the source maps will be output in the same directory as the JavaScript files, Next.js will automatically serve these files when requested. When the `productionBrowserSourceMaps` option is enabled, the source maps will be output in the same directory as the JavaScript files. Next.js will automatically serve these files when requested.
## Caveats ## Caveats
- Can increase `next build` time - Adding source maps can increase `next build` time
- Increases memory usage during `next build` - Increases memory usage during `next build`
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