How to remove the next js and react js version

How to remove the next js and react js version in the build for the security reasons i don’t wanted display the version

i have tried this one which is not working

import TerserPlugin from "terser-webpack-plugin";

import WebpackObfuscator from "webpack-obfuscator";



/\*\* @type {import('next').NextConfig} \*/

const nextConfig = {

  reactStrictMode: true,

  poweredByHeader: false,

  productionBrowserSourceMaps: false,

  output: "export",

  

  trailingSlash: true,

  

  webpack(config, { isServer }) {

    if (!isServer) {

      if (config.optimization && config.optimization.minimizer) {

        config.optimization.minimizer.push(

          new TerserPlugin({

            terserOptions: {

              compress: {

                drop_console: true,

                drop_debugger: true,

              },

              output: {

                comments: false,

              },

            },

          })

        );

      }



      config.plugins.push(

        new WebpackObfuscator(

          {

            rotateStringArray: true,

            stringArray: true,

            stringArrayThreshold: 0.75,

            debugProtection: false,

            disableConsoleOutput: true,

          },

          \[\]

        )

      );

    }

    return config;

  },

};



export default nextConfig;

Hi @notifycdac-8104, welcome to the Vercel Community!

Where do you want to remove this information from? Can you share a screenshot?

I see. Can you try the following Next config:


/** @type {import('next').NextConfig} */
const nextConfig = {
  poweredByHeader: false,
}

module.exports = nextConfig

this one is not working

I see. I found this solution highly appreciated, so must be worth giving a try. Also, keep the previous next.config that I suggested