Spaces:
Sleeping
Sleeping
feat: implement FastAPI backend and frontend proxy configuration for brain management services
37f2357 | 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; | |