31 lines
604 B
TypeScript
31 lines
604 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
poweredByHeader: false,
|
|
compress: true,
|
|
|
|
images: {
|
|
formats: ["image/avif", "image/webp"],
|
|
minimumCacheTTL: 604800,
|
|
},
|
|
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;
|