0% found this document useful (0 votes)
2 views1 page

Import Type

The document is a configuration file for a Next.js application. It specifies that the output format should be 'export' and disables image optimization for compatibility with CPanel. Additionally, it defines remote patterns for loading images from specified external sources.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Import Type

The document is a configuration file for a Next.js application. It specifies that the output format should be 'export' and disables image optimization for compatibility with CPanel. Additionally, it defines remote patterns for loading images from specified external sources.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

import type { NextConfig } from "next";

const nextConfig: NextConfig = {

output: "export", // ✅ REQUIRED for generating /out

images: {

unoptimized: true, // ✅ Required for export (no Image Optimization on CPanel)

remotePatterns: [

protocol: "https",

hostname: "[Link]",

port: "",

pathname: "/wp-content/uploads/**",

},

protocol: "https",

hostname: "[Link]",

port: "",

pathname: "/**",

},

],

},

};

export default nextConfig;

You might also like