Skip to content

Commit fe0d7a2

Browse files
committed
Update .gitignore and improve better-auth docs
Added .obsidian/ to .gitignore to exclude Obsidian workspace files. Improved documentation for better-auth integration by correcting the server URL format and reorganizing plugin import statements for clarity.
1 parent acb9be2 commit fe0d7a2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,5 @@ dist
174174

175175
**/.vitepress/cache
176176
**/.vitepress/dist
177+
178+
.obsidian/*

docs/integrations/better-auth.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const app = new Elysia()
4848
.listen(3000)
4949

5050
console.log(
51-
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
51+
`🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}`
5252
)
5353
```
5454

@@ -100,13 +100,11 @@ We may do that with the following code:
100100

101101

102102
```ts
103+
import { openAPI } from 'better-auth/plugins'
103104
export const auth = betterAuth({
104-
  plugins: [openAPI()], // [!code ++]
105+
plugins: [openAPI()], // [!code ++]
105106
});
106107

107-
108-
import { openAPI } from 'better-auth/plugins'
109-
110108
let _schema: ReturnType<typeof auth.api.generateOpenAPISchema>
111109
const getSchema = async () => (_schema ??= auth.api.generateOpenAPISchema())
112110

0 commit comments

Comments
 (0)