Files
Firefly_Sranalysis/next.config.ts
AzenKain f5541c9527
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 39s
UPDATE: New cdn, assets
2026-02-17 23:27:25 +07:00

48 lines
1.0 KiB
TypeScript

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 nextConfig: NextConfig = {
reactStrictMode: false,
output: 'standalone',
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'localhost',
pathname: '**',
},
{
protocol: 'http',
hostname: 'localhost',
pathname: '**',
},
{
protocol: "https",
hostname: "cdn.kain.id.vn",
pathname: "**",
},
{
protocol: "http",
hostname: "cdn.kain.id.vn",
pathname: "**",
}
],
},
compiler: {
styledComponents: true,
},
env: {
CDN_URL: "https://cdn.kain.id.vn/firefly/assets/asbres",
},
};
export default withBundleAnalyzer(withNextIntl(nextConfig));