ever-brain / web /frontend /next.config.ts
AlexKurian's picture
feat: implement FastAPI backend and frontend proxy configuration for brain management services
37f2357
Raw
History Blame Contribute Delete
666 Bytes
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async rewrites() {
return [
{
source: "/status",
destination: "http://localhost:8000/status",
},
{
source: "/brains",
destination: "http://localhost:8000/brains",
},
{
source: "/download",
destination: "http://localhost:8000/download",
},
{
source: "/download/setup",
destination: "http://localhost:8000/download/setup",
},
{
source: "/install.ps1",
destination: "http://localhost:8000/install.ps1",
},
];
},
};
export default nextConfig;