Fix API proxy path - maintain /api/ prefix for backend calls
This commit is contained in:
parent
a2595246cc
commit
ba654296e9
1 changed files with 1 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ export async function DELETE(
|
|||
async function proxyToBackend(request: NextRequest, pathSegments: string[]) {
|
||||
const path = pathSegments.join('/');
|
||||
// Use dedicated backend subdomain for reliable API access
|
||||
// The catch-all route strips '/api/' from the path, so we need to add it back
|
||||
const backendUrl = `https://files.mad-lawsuit.org/api/${path}`;
|
||||
|
||||
// Get the search params from the original request
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue