26 أسطر
504 B
JavaScript
26 أسطر
504 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
poweredByHeader: false,
|
|
compress: true,
|
|
output: "standalone",
|
|
images: {
|
|
unoptimized: true,
|
|
formats: ["image/avif", "image/webp"],
|
|
},
|
|
webpack: (config, { dev }) => {
|
|
if (dev) {
|
|
config.watchOptions = {
|
|
...config.watchOptions,
|
|
poll: 1000,
|
|
aggregateTimeout: 300,
|
|
ignored: /node_modules/,
|
|
};
|
|
}
|
|
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|