Skip to content

Commit 06b3e5b

Browse files
chargomeLuca Forstner
andauthored
Update docs/platforms/javascript/common/troubleshooting/index.mdx
Co-authored-by: Luca Forstner <[email protected]>
1 parent 9e13e6a commit 06b3e5b

File tree

1 file changed

+1
-1
lines changed
  • docs/platforms/javascript/common/troubleshooting

1 file changed

+1
-1
lines changed

docs/platforms/javascript/common/troubleshooting/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ shamefully-hoist=true
549549
The problem is related to memory consumption during the build process, especially when generating source maps. Here are some potential solutions and workarounds:
550550
551551
- Update your `@sentry/nextjs` package to the latest version.
552-
- Increase Node.js memory limit: You can try increasing the memory limit for Node.js during the build process. Add this to your build command: `NODE_OPTIONS="--max-old-space-size=4096" next build`
552+
- Increase Node.js memory limit: You can try increasing the memory limit for Node.js during the build process. Add this to your build command: `NODE_OPTIONS="--max-old-space-size=8192" next build`. This flag will increase the memory available to the node process to 8 GB. We have found that Next.js consumes around 4 GB in most cases. Decrease the size depending on your memory availability.
553553
- Disable source maps entirely: As a last resort, you can disable source map generation completely:
554554
```js {filename:next.config.js}
555555
module.exports = withSentryConfig(module.exports, {

0 commit comments

Comments
 (0)