mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-27 21:33:41 +02:00
fix(web): add /uploads/* rewrite for self-hosted deployments
On self-hosted deployments where the frontend is the public entrypoint, uploaded files return 404 because /uploads/* requests aren't proxied to the backend. Add a rewrite rule following the existing pattern for /api/*, /ws, and /auth/*. Closes #1004
This commit is contained in:
@@ -45,6 +45,10 @@ const nextConfig: NextConfig = {
|
||||
source: "/auth/:path*",
|
||||
destination: `${remoteApiUrl}/auth/:path*`,
|
||||
},
|
||||
{
|
||||
source: "/uploads/:path*",
|
||||
destination: `${remoteApiUrl}/uploads/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user