fix: respect LETTERFEED_BACKEND_URL at build time #1

This commit is contained in:
Leon
2025-07-24 18:03:58 +02:00
parent 6ff4e817ef
commit 68254e45f4
6 changed files with 22 additions and 35 deletions

View File

@@ -1,15 +1,5 @@
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*`,
},
];
},
};
const nextConfig: NextConfig = {};
export default nextConfig;