fix: update fetch options to include target URL in buildRelayRequest

This commit is contained in:
MythEclipse
2026-05-07 20:43:09 +07:00
parent cc38b7c7c6
commit db175e6e95
2 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export default async function handler(req: Request): Promise<Response> {
}
const headers = stripRelayHeaders(new Headers(req.headers));
const fetchOptions = buildRelayRequest(req, headers);
const fetchOptions = buildRelayRequest(req, targetUrl, headers);
const response = await fetch(targetUrl, fetchOptions);
return createRelayResponse(response);
+1 -7
View File
@@ -2,11 +2,5 @@
"$schema": "https://openapi.vercel.sh/vercel.json",
"bunVersion": "1",
"installCommand": "bun install",
"outputDirectory": "dist",
"rewrites": [
{
"source": "/api/(.*)",
"destination": "/api/index.ts"
}
]
"outputDirectory": "dist"
}