29 lines
878 B
TypeScript
29 lines
878 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactStrictMode: true,
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/:path*",
|
|
headers: [
|
|
{ key: "Cache-Control", value: "no-store, no-cache, must-revalidate, proxy-revalidate" },
|
|
{ key: "Pragma", value: "no-cache" },
|
|
{ key: "Expires", value: "0" },
|
|
],
|
|
},
|
|
];
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{ protocol: "https", hostname: "picsum.photos", pathname: "/**" },
|
|
{ protocol: "https", hostname: "i.pravatar.cc", pathname: "/**" },
|
|
{ protocol: "https", hostname: "images.unsplash.com", pathname: "/**" },
|
|
{ protocol: "https", hostname: "sns-webpic-qc.xhscdn.com", pathname: "/**" },
|
|
{ protocol: "https", hostname: "sns-avatar-qc.xhscdn.com", pathname: "/**" },
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|