1 Answer
- Newest
- Most votes
- Most comments
0
Hi there,
Quick Fixes:
-
Upgrade Build Environment:
- Use a larger build instance in the Amplify console for more memory.
-
Optimize Build Process:
- Reduce memory usage by optimizing your build, like limiting files or splitting tasks.
-
Increase Memory Allocation:
- Set
NODE_OPTIONS="--max-old-space-size=12288"to increase memory for the build.
- Set
-
Disable ESLint:
- Temporarily disable ESLint during the build by setting:
CI=true npm run build
- Temporarily disable ESLint during the build by setting:
-
Check Logs:
- Review the Amplify build logs to find where memory spikes.
Hope this helps! 😁
answered 2 years ago
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated 4 years ago
