Docker update

This commit is contained in:
2025-10-10 01:21:16 +05:30
parent bde2b12a95
commit 697ecebd0f

View File

@ -1,38 +1,28 @@
import type { NextConfig } from "next"; import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
// Required for Docker standalone build output: "standalone",
output: 'standalone',
/* config options here */
images: { images: {
unoptimized: true, // ✅ disable Next.js optimization
remotePatterns: [ remotePatterns: [
{ {
protocol: 'https', protocol: "https",
hostname: 'images.unsplash.com', hostname: "images.unsplash.com",
port: '', pathname: "/**",
pathname: '/**',
}, },
{ {
protocol: 'http', protocol: "https",
hostname: 'localhost', hostname: "cmcbackend.rootxwire.com",
port: '8080', pathname: "/**",
pathname: '/api/files/images/**',
}, },
{ {
protocol: 'https', protocol: "https",
hostname: 'cmcbackend.rootxwire.com', hostname: "maincmc.rootxwire.com",
pathname: '/api/files/images/**', pathname: "/**",
}, },
{
protocol: 'https',
hostname: 'maincmc.rootxwire.com',
pathname: '/**',
}
], ],
// Minimize cache issues in production
minimumCacheTTL: 60,
}, },
}; };
export default nextConfig; export default nextConfig;