fix example

This commit is contained in:
Jarred Sumner
2022-04-05 19:15:58 -07:00
parent f97e6d04a7
commit ddaab5a836

View File

@@ -23,13 +23,13 @@ Bun.serve({
});
// Start a fast HTTP server from the main file's export
export default {
fetch(req) {
return new Response(
`This is another way to start a server!
if the main file export default's an object
with 'fetch'. Bun automatically calls Bun.serve`
);
},
// so autocomplete & type checking works
} as Bun.Serve;
// export default {
// fetch(req) {
// return new Response(
// `This is another way to start a server!
// if the main file export default's an object
// with 'fetch'. Bun automatically calls Bun.serve`
// );
// },
// // so autocomplete & type checking works
// } as Bun.Serve;