Files
LetterFeed/frontend/next.config.ts
2025-07-22 19:04:32 +02:00

16 lines
328 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async rewrites() {
const backendUrl = process.env.LETTERFEED_BACKEND_URL || "http://backend:8000";
return [
{
source: "/api/:path*",
destination: `${backendUrl}/:path*`,
},
];
},
};
export default nextConfig;