deepsite / next.config.ts
enzostvs's picture
enzostvs HF Staff
add imgur as hotname images
186f870
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
experimental: {
globalNotFound: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "huggingface.co",
},
{
protocol: "https",
hostname: "i.imgur.com",
}
],
},
headers: async () => [
{
source: "/:path*",
headers: [
{
key: "Cache-Control",
value: "public, max-age=0, must-revalidate",
},
],
},
{
source: "/_next/static/:path*",
headers: [
{
key: "Cache-Control",
value: "public, max-age=31536000, immutable",
},
],
},
],
};
export default nextConfig;