Bun docs "Change port" unclear #1764
-
Hi, regarding this section: https://hono.dev/getting-started/bun#change-port-number It's unclear what file should export this. The example project has a single file which exports |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
cc: @sor4chi |
Beta Was this translation helpful? Give feedback.
-
Hi there! You should write it like this: const app = new Hono(); app.get('/', (c) => { export default { |
Beta Was this translation helpful? Give feedback.
-
honojs/website#215 |
Beta Was this translation helpful? Give feedback.
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,
};
`