Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,5 @@ dist

**/.vitepress/cache
**/.vitepress/dist

.obsidian/*
6 changes: 5 additions & 1 deletion docs/integrations/better-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const app = new Elysia()
.listen(3000)

console.log(
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
`🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}`
)
```

Expand Down Expand Up @@ -98,8 +98,12 @@ However if we are using [@elysiajs/openapi](/plugins/openapi), you might want to

We may do that with the following code:


```ts
import { openAPI } from 'better-auth/plugins'
export const auth = betterAuth({
plugins: [openAPI()], // [!code ++]
});

let _schema: ReturnType<typeof auth.api.generateOpenAPISchema>
const getSchema = async () => (_schema ??= auth.api.generateOpenAPISchema())
Expand Down
2 changes: 1 addition & 1 deletion docs/patterns/openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const app = new Elysia()
<summary>Having issues with type generation?</summary>

### Caveats: Root path
As it's unreliable to guess to root of the project, it's recommended to provide the path to the project root to allow generator to run correctly, especially when using monorepo.
If you use turbomonorepo, you don't need to worry about the root path . As it's unreliable to guess to root of the project, it's recommended to provide the path to the project root to allow generator to run correctly, especially when using monorepo.

```ts
import { Elysia, t } from 'elysia'
Expand Down