21 lines
442 B
TypeScript
21 lines
442 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/assets/:path*', // Path ke folder gambar
|
|
headers: [
|
|
{
|
|
key: 'Cache-Control',
|
|
value: 'public, max-age=3600, stale-while-revalidate=600', // Cache selama 1 jam, validasi ulang setelah 10 menit
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
|
|
};
|
|
|
|
export default nextConfig;
|