Skip to content

Commit

Permalink
Fix typo in source maps documentation. (#22952)
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob committed Mar 10, 2021
1 parent 7f1800e commit fa02b19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/advanced-features/source-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Enables browser source map generation during the production build.

# 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:

Expand All @@ -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

- Can increase `next build` time
- Adding source maps can increase `next build` time
- Increases memory usage during `next build`

0 comments on commit fa02b19

Please sign in to comment.