Compare commits

...

1 Commits

Author SHA1 Message Date
Jiang Bohan
8411a30943 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
2026-04-14 21:30:40 +08:00

View File

@@ -45,6 +45,10 @@ const nextConfig: NextConfig = {
source: "/auth/:path*",
destination: `${remoteApiUrl}/auth/:path*`,
},
{
source: "/uploads/:path*",
destination: `${remoteApiUrl}/uploads/:path*`,
},
];
},
};