Files
wehub-resource-sync 542cfa195c
CI / Frontend build (push) Failing after 9m6s
CI / Plugin validate (push) Failing after 9m27s
CI / Python lint (push) Failing after 16m1s
CI / Tests (push) Successful in 18m0s
Deploy / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:33:27 +08:00

32 lines
927 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async redirects() {
return [
{
// The in-app status page was removed; status now lives on
// independent infrastructure. Forward the old URL there.
source: "/status",
destination: "https://status.pixelrag.ai",
permanent: true,
},
];
},
async rewrites() {
// Proxy search-backend endpoints (/api/search, /tile, /status, /health,
// /reconstruct) to the public search API. Route handlers like /api/chat
// take precedence over this rewrite. Uses the public host so it works on
// Vercel (localhost only exists in local dev).
const searchBackend =
process.env.PIXELRAG_SEARCH_PROXY || "https://api.pixelrag.ai";
return [
{
source: "/api/:path*",
destination: `${searchBackend}/:path*`,
},
];
},
};
export default nextConfig;