We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74b716f commit 888819cCopy full SHA for 888819c
apps/backend/api/index.ts
@@ -63,7 +63,7 @@ export default async function handler(req: any, res: any) {
63
const host = req.headers.host;
64
const url = new URL(req.url, `${protocol}://${host}`);
65
66
- const request = new Request(url, {
+ const request = new Request(url.href, {
67
method: req.method,
68
headers: req.headers,
69
body: req.method !== "GET" && req.method !== "HEAD" ? JSON.stringify(req.body) : undefined,
0 commit comments