Files
cmc_frontend/next.config.ts
2025-10-10 00:44:24 +05:30

38 lines
822 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Required for Docker standalone build
output: 'standalone',
/* config options here */
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'images.unsplash.com',
port: '',
pathname: '/**',
},
{
protocol: 'http',
hostname: 'localhost',
port: '8080',
pathname: '/api/files/images/**',
},
{
protocol: 'https',
hostname: 'cmcbackend.rootwire.com',
pathname: '/api/files/images/**',
},
{
protocol: 'https',
hostname: 'maincmc.rootwire.com',
pathname: '/**',
}
],
// Minimize cache issues in production
minimumCacheTTL: 60,
},
};
export default nextConfig;