Skip to content

How can I change the message: 'Started server http://localhost:3000' #2977

Answered by NicoPlyley
RotaN8 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @RotaN8

The answer given by @EdamAme-x is correct. Bun is responsible for sending that message. Hono is only a router it does not handle the server being started or any lifecycles.

To update the message you can use Bun.serve(app) and add a custom console log after it.

If you do this, you do not need an export default anymore, when Bun sees a file has an export default it tries to run it in a Bun serve automatically.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@RotaN8
Comment options

@NicoPlyley
Comment options

@RotaN8
Comment options

Answer selected by RotaN8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants