updated logo for signature serving
This commit is contained in:
@@ -3,6 +3,25 @@ import type { NextConfig } from "next";
|
|||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
allowedDevOrigins: ["192.168.100.6"],
|
allowedDevOrigins: ["192.168.100.6"],
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
|
// Files in public/ are served with `Cache-Control: public, max-age=0` by
|
||||||
|
// default, because Next.js can't know whether they change. kd-tile.png is
|
||||||
|
// hot-linked by an external HTML email signature, so its URL is a fixed
|
||||||
|
// contract and its bytes never change — pin it to a long-lived immutable
|
||||||
|
// cache so mail clients and their image proxies stop re-fetching it.
|
||||||
|
// Headers are matched before the filesystem, so this applies to public/.
|
||||||
|
async headers() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
source: "/kd-tile.png",
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
key: "Cache-Control",
|
||||||
|
value: "public, max-age=31536000, immutable",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 5.6 KiB |
Reference in New Issue
Block a user