Skip to content

Commit 266488a

Browse files
authored
Documentation: fix params of Bun.serve to use yoga issue #3003 (#3155)
1 parent def25fc commit 266488a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

website/src/pages/docs/integrations/integration-with-bun.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ const yoga = createYoga({
3838
}
3939
})
4040
})
41-
const server = Bun.serve(yoga)
41+
42+
const server = Bun.serve({
43+
fetch: yoga,
44+
});
45+
4246
console.info(
4347
`Server is running on ${new URL(
4448
yoga.graphqlEndpoint,

0 commit comments

Comments
 (0)