We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d91fa1 + 27a6115 commit cb94415Copy full SHA for cb94415
src/handlers/handlerUtils.ts
@@ -322,14 +322,17 @@ export async function tryPost(
322
c,
323
gatewayRequestURL: c.req.url,
324
}));
325
- const endpoint = apiConfig.getEndpoint({
326
- c,
327
- providerOptions: providerOption,
328
- fn,
329
- gatewayRequestBodyJSON: params,
330
- gatewayRequestBody: requestBody,
331
- gatewayRequestURL: c.req.url,
332
- });
+ const endpoint =
+ fn === 'proxy'
+ ? ''
+ : apiConfig.getEndpoint({
+ c,
+ providerOptions: providerOption,
+ fn,
+ gatewayRequestBodyJSON: params,
333
+ gatewayRequestBody: {}, // not using anywhere.
334
+ gatewayRequestURL: c.req.url,
335
+ });
336
337
url =
338
fn === 'proxy'
0 commit comments