UPDATE: Optimaze

This commit is contained in:
2025-09-27 08:45:09 +07:00
parent af4451fd97
commit 8fedc05e5c
7 changed files with 158 additions and 67 deletions

View File

@@ -1,40 +1,44 @@
import createNextIntlPlugin from "next-intl/plugin";
import type { NextConfig } from "next";
import bundleAnalyzer from "@next/bundle-analyzer";
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});
const withNextIntl = createNextIntlPlugin();
const withNextIntl = createNextIntlPlugin()
const nextConfig: NextConfig = {
reactStrictMode: false,
output: 'standalone',
output: "standalone",
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'localhost',
pathname: '**',
},
{
protocol: 'http',
hostname: 'localhost',
pathname: '**',
},
{
protocol: 'https',
hostname: 'api.hakush.in',
pathname: '**',
},
{
protocol: 'https',
hostname: 'homdgcat.wiki',
pathname: '**',
},
],
unoptimized: true,
remotePatterns: [
{
protocol: "http",
hostname: "localhost",
pathname: "**",
},
{
protocol: "https",
hostname: "localhost",
pathname: "**",
},
{
protocol: "https",
hostname: "api.hakush.in",
pathname: "**",
},
{
protocol: "https",
hostname: "homdgcat.wiki",
pathname: "**",
},
],
},
eslint: {
ignoreDuringBuilds: true,
ignoreDuringBuilds: true,
},
};
export default withNextIntl(nextConfig);
export default withBundleAnalyzer(withNextIntl(nextConfig));