Skip to content

Commit c310c57

Browse files
committed
fix: correct requestdata type
1 parent aab3b80 commit c310c57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime/src/templates/edge/runtime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface RequestData {
3333
name?: string
3434
params?: { [key: string]: string }
3535
}
36-
url: URL
36+
url: string
3737
body?: ReadableStream<Uint8Array>
3838
}
3939

@@ -82,7 +82,7 @@ const handler = async (req: Request, context: Context) => {
8282
const request: RequestData = {
8383
headers: Object.fromEntries(req.headers.entries()),
8484
geo,
85-
url,
85+
url: req.url,
8686
method: req.method,
8787
ip: context.ip,
8888
body: req.body ?? undefined,

0 commit comments

Comments
 (0)