Skip to content

Commit

Permalink
docs: update example in getting started (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 2, 2024
1 parent 582fc7e commit a904927
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/content/get-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ const mf = new Miniflare({
export default {
async fetch(request, env, ctx) {
return new Response("Hello Miniflare!");
})
}
}
`,
});

const res = await mf.dispatchFetch("http:https://localhost:8787/");
console.log(await res.text()); // Hello Miniflare!
await mf.dispose();
```

The [rest of these docs](/core/fetch) go into more detail on configuring
Expand Down

0 comments on commit a904927

Please sign in to comment.