SPB Git forge

spb/qc26

Public
10commits 1branches 0releases
2.8 MBsize
maindefault branch
18 days agolast push
Python 51.6% TypeScript 46.7% CSS 1.7%
624 B · 23 lines typescript
Raw Blame History
1import type { NextConfig } from "next";23const ENGINE = process.env.QC26_ENGINE_URL || "http://127.0.0.1:8201";45const nextConfig: NextConfig = {6  reactStrictMode: true,7  poweredByHeader: false,8  images: { formats: ["image/avif", "image/webp"] },9  async rewrites() {10    return [11      { source: "/api/:path*", destination: `${ENGINE}/api/:path*` },12      { source: "/healthz", destination: `${ENGINE}/healthz` },13    ];14  },15  async headers() {16    return [17      { source: "/parties/:path*", headers: [{ key: "Cache-Control", value: "public, max-age=604800, immutable" }] },18    ];19  },20};2122export default nextConfig;23