Skip to content

Commit 58bfdbb

Browse files
authored
Update quick-start.md
Update documentation to match the output of running `bun create elysia hi-elysia` Currently, copy pasting the code from the documentation causes a `'app.server' is possibly 'null'` error, which is confusing for new users like myself
1 parent 40ad1b5 commit 58bfdbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const app = new Elysia()
4040
.get('/', () => 'Hello Elysia')
4141
.listen(8080)
4242

43-
console.log(`🦊 Elysia is running at ${app.server.hostname}:${app.server.port}`)
43+
console.log(`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`)
4444
```
4545

4646
Start a development server by:

0 commit comments

Comments
 (0)