Files
apps-registry/workloads/ecommerce/next.config.ts
T
devops 6e98cfba37
Build and Push Frontend / build (push) Canceled after 0s
Update workloads/ecommerce/next.config.ts
2026-07-24 04:17:37 +00:00

31 lines
637 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
poweredByHeader: false,
compress: true,
images: {
formats: ["image/avif", "image/webp"],
minimumCacheTTL: 604800,
deviceSizes: [360, 640, 768, 1024, 1280, 1536],
imageSizes: [64, 96, 160, 256, 384, 560],
},
async headers() {
return [
{
source: "/images/:path*",
headers: [
{
key: "Cache-Control",
value:
"public, max-age=604800, stale-while-revalidate=2592000",
},
],
},
];
},
};
export default nextConfig;