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