Skip to content
Open
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
9 changes: 8 additions & 1 deletion docs/integrations/nuxt.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@ bun add -d nuxt-elysia
export default defineNuxtConfig({
modules: [ // [!code ++]
'nuxt-elysia' // [!code ++]
] // [!code ++]
], // [!code ++]
nitro: { // [!code ++]
preset: 'Bun' // [!code ++]
} // [!code ++]
})
```

::: tip
The `nitro.preset: 'Bun'` configuration is required because Elysia runs on Bun runtime. This tells Nuxt's Nitro to use Bun as the server runtime instead of the default Node.js runtime.
:::

3. Create `api.ts` in the project root:

```typescript [api.ts]
Expand Down