Skip to content

Commit 71a06aa

Browse files
committed
docs: added Vite config to readme
1 parent 7f5f5e2 commit 71a06aa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ export default defineNuxtConfig({
4444
})
4545
```
4646

47+
Also, to enable Dev server compatibility with Pusher, you need to add the following Vite configuration to your `nuxt.config.js`:
48+
49+
```typescript
50+
export default defineNuxtConfig({
51+
vite: {
52+
optimizeDeps: {
53+
include: ['pusher-js'],
54+
},
55+
},
56+
})
57+
```
58+
4759
That's it! You can now use Nuxt Laravel Echo in your Nuxt app ✨
4860

4961
## Contribution

0 commit comments

Comments
 (0)