import type { NextConfig } from "next"; import bundleAnalyzer from "@next/bundle-analyzer"; const withAnalyzer = bundleAnalyzer({ enabled: process.env.ANALYZE === "true", }); const nextConfig: NextConfig = { serverExternalPackages: ["adm-zip"], compress: true, images: { remotePatterns: [ { protocol: "https", hostname: "mc-heads.net" }, { protocol: "https", hostname: "cdn.modrinth.com" }, ], }, experimental: { serverActions: { bodySizeLimit: "100mb", }, }, }; export default withAnalyzer(nextConfig);