Here's the message when deployed. Code to replicate this error: http://github.com/jojonicho/next-apollo-codegen
I fixed it by removing the next.config.js file entirely.