SitecoreAI - Increase Internal Rendering Host Node Memory Size

Jared Arnofsky,SitecoreAI

Summary

Recently, we encountered an issue in our SitecoreAI environment on our internal Next.js rendering host. We hit our memory application limit:

Local Development

The Solution

The solution was actually rather simple. You can add a new variable to your SitecoreAI rendering host to increase the value.

We added the variable NODE_OPTIONS and set the value to --max-old-space-size=8192 using the SitecoreAI Deploy app:

Local Development

We then deployed and the error went away.

Conclusion

SitecoreAI has the flexibility to change the allocated memory size for your internal Next.js rendering host.