Does Next.js inline the value of a JSON field during build? For example, in How to get version from package.json in next js? and Is there a way to get the version from the 'package.json' file in Node.js code?, it's suggested that we can import { version } from 'package.json'
to get the version code.
However, there's a security concern with browserify since it includes the entire "package.json" in the build. What about building an application with next? Does it instead inline the version directly in the build? Does server-side v.s. client-side rendering change the answer?
I do not have very thorough knowledge on the Next.js compiler. Thank you for any advice in advance.