У меня есть следующее приложение JS Я хочу удалить следующую версию JS от Wappalyzer < /p>
Вещи, которые я попробовал < /p>
в моем следующем.config.js < /p>
У меня есть следующее приложение JS Я хочу удалить следующую версию JS от Wappalyzer < /p> Вещи, которые я попробовал < /p> в моем следующем.config.js < /p> [code]/** @type {import('next').NextConfig} */
const nextConfig = { reactStrictMode: true, swcMinify: true, output: "standalone", images: { domains: [ "smc-static-website-artifact-uat.s3.amazonaws.com", // Add this domain // Add any other domains you need here ], }, experimental: { missingSuspenseWithCSRBailout: false, }, eslint: { // This allows production builds to successfully complete even if there are ESLint errors. ignoreDuringBuilds: true, }, typescript: { // Ignore TypeScript errors during build ignoreBuildErrors: true, }, reactStrictMode: true, poweredByHeader: false, async headers() { return [ { source: "/:path*", headers: [ { key: 'X-Powered-By', value: '', }, ], }, ]; }, compiler: { removeConsole: { exclude: ["error"], // Keep only console.error }, }, };
module.exports = nextConfig; < /code> В заголовке я добавил клавишу в виде x-power-by и value '' < /p> Еще одна вещь, которую я сделал,-это , изменяя следующую. config.js < /p> /** @type {import('next').NextConfig} */
// ✅ Add webpack customization to remove version info webpack(config, { isServer }) { if (!isServer) { config.plugins.push( new webpack.NormalModuleReplacementPlugin( /next\/dist\/client\/index\.js/, require.resolve("./remove-next-version.js") ) ); } return config; }, };
module.exports = nextConfig; < /code> Создано remove-next-version.js в корне приложения < /p> module.exports = { version: '', appDir: false, }; [/code] Все еще в Wapplyzer. Следующая версия JS виден Я хочу, чтобы следующая версия JS была пустой