Skip to content

Commit

Permalink
feat: add kapa widget
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 19, 2024
1 parent 7044828 commit 5891754
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@ export default defineNuxtConfig({
}
}
],
scripts: {
globals: {
kapa: [
{
'src': 'https://widget.kapa.ai/kapa-widget.bundle.js',
'data-website-id': 'fb3af718-9db2-440d-9da9-14e6c5fca2aa',
'data-project-name': 'Nuxt',
'data-project-color': '#00DC82',
'data-project-logo': 'https://nuxt.com/assets/design-kit/icon-green.png',
'data-modal-disclaimer': 'This is a custom LLM for answering questions about Nuxt. Answers are based on the contents of the documentation, GitHub information and Stack Overflow articles. Please note that answers are generated by AI and may not be fully accurate, so please use your best judgement.',
'data-user-analytics-fingerprint-enabled': 'true'
},
{ trigger: 'onNuxtReady' }
]
}
},
routeRules: {
// Pre-render
'/api/search.json': { prerender: true },
Expand Down

0 comments on commit 5891754

Please sign in to comment.