Skip to content

Commit

Permalink
refactor: Bun.serve
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Feb 9, 2024
1 parent b3ddbcb commit 28c9563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions create-farc/templates/default/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as Bun from 'bun'
import { Button, Farc, TextInput } from 'farc'

const app = new Farc()
Expand Down Expand Up @@ -52,7 +53,4 @@ app.frame('/', (context) => {
}
})

export default {
port: 3000,
fetch: app.fetch,
}
Bun.serve(app)
5 changes: 1 addition & 4 deletions example/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,4 @@ app.frame('/falsy-intents', () => {
}
})

export default {
port: 3001,
fetch: app.fetch,
}
Bun.serve(app)

0 comments on commit 28c9563

Please sign in to comment.