Created
July 16, 2026 16:00
-
-
Save RichardBray/6954981879f9a6618fdf9a61f3246fe1 to your computer and use it in GitHub Desktop.
Small bun local server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Bun.serve({ | |
| port: 3000, | |
| fetch: async (req) => { | |
| console.log(await req.json()); | |
| return new Response("ok"); | |
| }, | |
| }); | |
| console.log("Listening for webhooks on http://localhost:3000") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment