Files
sarlink-portal/next.config.ts
i701 683d85798a
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m58s
feat: add custom headers configuration to next.js config for stream/suspense support
2025-07-05 21:21:08 +05:00

40 lines
616 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
images: {
remotePatterns: [
{
protocol: "http",
hostname: "verifypersonapi.baraveli.dev",
pathname: "/images/**",
search: "",
port: "",
},
{
protocol: "https",
hostname: "i.pravatar.cc",
pathname: "/300/**",
search: "",
port: "",
},
],
},
output: "standalone",
async headers() {
return [
{
source: '/:path*{/}?',
headers: [
{
key: 'X-Accel-Buffering',
value: 'no',
},
],
},
]
},
};
export default nextConfig;