agentic-os/newspaper-extractor/frontend/next.config.ts

17 lines
358 B
TypeScript

import type { NextConfig } from "next";
const BACKEND_URL = process.env.BACKEND_URL || 'http://newspaper-backend.ai-agents.svc.cluster.local:8000';
const nextConfig: NextConfig = {
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${BACKEND_URL}/api/:path*`,
},
];
},
};
export default nextConfig;