const withBundleAnalyzer = require("@next/bundle-analyzer")({ enabled: process.env.ANALYZE === "true", }); /** @type {import('next').NextConfig} */ const nextConfig = { // any configs you need }; module.exports = withBundleAnalyzer(nextConfig);