Docker update
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user