@next/bundle-analyzer: "make sure to wrap the require in a process.env check as next."
Unanswered
Japanese pilchard posted this in #help-forum
Japanese pilchardOP
(if installing as a devDependency)
Why and what check to make exactly?
[Link to the package](https://www.npmjs.com/package/@next/bundle-analyzer)
Why and what check to make exactly?
npm install @next/bundle-analyzer
or
yarn add @next/bundle-analyzer
Note: if installing as a devDependency make sure to wrap the require in a process.env check as next.config.js is loaded during next start as well.[Link to the package](https://www.npmjs.com/package/@next/bundle-analyzer)