Hum, that's interesting. I do have NODE_ENV=production set. I'll have to see if Next.js needs something additional.
Although, with server-side rendering (which is part of what I really like about Next.js), the impact should be reduced somewhat.
Although, with server-side rendering (which is part of what I really like about Next.js), the impact should be reduced somewhat.
I sent a pull request to fix it: https://github.com/lukehansell/react-google-ad/pull/5
Not sure how Next.js does it but you should probably try putting NODE_ENV=production in the "build" script in package.json like in "start"?
I had a quick glance over Next.js's docs and it looks like they should handle this automatically just by `next build`. ¯\_(ツ)_/¯