Files
Firefly_Srtools/next.config.ts
AzenKain 8fbb27b5c1
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 1m21s
UPDATE: New cdn, assets
2026-02-17 22:26:15 +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: "http",
hostname: "localhost",
pathname: "**",
},
{
protocol: "https",
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));