Skip to content

Commit 91cdbc2

Browse files
authored
Update README.md
1 parent 8006fa2 commit 91cdbc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ app.get("/editor/:id", upgrade(), async (c) => {
105105
const stub = c.env.Y_DURABLE_OBJECTS.get(id);
106106

107107
const url = new URL("/", c.req.url);
108-
const client = hc<YDurableObjectsAppType>(url, {
108+
const client = hc<YDurableObjectsAppType>(url.toString(), {
109109
fetch: stub.fetch.bind(stub),
110110
});
111111

0 commit comments

Comments
 (0)