34 lines
816 B
TypeScript
34 lines
816 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
poweredByHeader: false,
|
|
compress: true,
|
|
reactStrictMode: true,
|
|
images: {
|
|
// Los recursos del catálogo ya vienen preoptimizados en WebP.
|
|
// Evita el costo de transformar imágenes durante la primera visita.
|
|
unoptimized: true,
|
|
formats: ["image/avif", "image/webp"],
|
|
deviceSizes: [360, 640, 768, 1024, 1280, 1536],
|
|
},
|
|
experimental: {
|
|
optimizePackageImports: ["lucide-react", "motion"],
|
|
},
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/images/:path*",
|
|
headers: [
|
|
{
|
|
key: "Cache-Control",
|
|
value: "public, max-age=604800, stale-while-revalidate=2592000",
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|