import createNextIntlPlugin from "next-intl/plugin"; const withNextIntl = createNextIntlPlugin(); /** @type {import('next').NextConfig} */ const nextConfig = { output: "export", // output: "standalone", images: { remotePatterns: [ ...(process.env.R2_PUBLIC_URL ? [ { hostname: process.env.R2_PUBLIC_URL.replace("https://", ""), }, ] : []), ], }, compiler: { removeConsole: process.env.NODE_ENV === "production" ? { exclude: ["error"], } : false, }, }; export default withNextIntl(nextConfig);