Skip to content

Bun docs "Change port" unclear #1764

Discussion options

You must be logged in to vote

Hi there! You should write it like this:
`import { Hono } from 'hono';

const app = new Hono();

app.get('/', (c) => {
return c.text('Hello Hono!');
});

export default {
port: 4001,
fetch: app.fetch,
};
`

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dominictobias
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants