Register to config:
plugins: [
hookdeck({
source: import.meta.env.NUXT_HOOKDECK_SOURCE || '{your hookdeck source}',
urlMap: {
Clerk: 'hook/clerk',
Paddle: 'hook/paddle',
},
enabled: import.meta.env.NUXT_HOOKDECK_ENABLED === '1',
}),
],The display messages ehen running dev server:
Connections
xxx -> xxx forwarding to /api/
4:07:08 PM
HOOKDECK URL MAPPING: 4:07:08 PM
┌─────────┬──────────┬──────────────────────────────────────────────────┬─────────────────────────────────────────────────┐ 4:07:08 PM
│ (index) │ Name │ Hook │ Dest │
├─────────┼──────────┼──────────────────────────────────────────────────┼─────────────────────────────────────────────────┤
│ 0 │ 'Clerk' │ 'https://hkdk.events/xxxxxxxxxxxx/hook/clerk' │ 'http://localhost:3000/api/hook/clerk' │
│ 1 │ 'Paddle' │ 'https://hkdk.events/xxxxxxxxxxxx/hook/paddle' │ 'http://localhost:3000/api/hook/paddle' │
└─────────┴──────────┴──────────────────────────────────────────────────┴─────────────────────────────────────────────────┘
✔ Nuxt Nitro server built in 614ms nitro 4:07:08 PM
ℹ Vite server warmed up in 1ms 4:07:08 PM
ℹ Vite client warmed up in 1ms
Blog post: https://lab.simular.co/concurrently-run-hookdeck-with-nuxt-vite-app