mirror of
https://github.com/khoaliber/LetterFeed.git
synced 2026-03-07 13:23:22 +00:00
fix: respect LETTERFEED_BACKEND_URL at build time #1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user