Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions .nuxtrc

This file was deleted.

6 changes: 6 additions & 0 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ export default defineNuxtConfig({
},
},
compatibilityDate: '2025-07-18',
vite: {
optimizeDeps: {
// Imported by `AssistantDemo.vue` and the Vercel plugin, found too late by Vite's scan.
include: ['@ai-sdk/vue', 'ai', '@vercel/analytics', '@vercel/speed-insights'],
},
},
agentDiscovery: {
excludePrefixes: {
// Nuxt Studio, a Vue page tree with no markdown twin
Expand Down
2 changes: 2 additions & 0 deletions layer/.nuxtrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Dev-only (not published): gives nuxt-llms a domain when preparing the layer alone
site.url=https://docus.dev
2 changes: 2 additions & 0 deletions layer/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export default defineNuxtConfig({
config.optimizeDeps ||= {}
config.optimizeDeps.include ||= []
config.optimizeDeps.include.push('@nuxt/content > slugify')
// `AssistantComark` is always registered, so Vite otherwise finds these on first render and reloads the page.
config.optimizeDeps.include.push('docus > @comark/vue', 'docus > @comark/vue/plugins/shiki')
config.optimizeDeps.include = config.optimizeDeps.include
.map(id => id.replace(/^@nuxt\/content > /, 'docus > @nuxt/content > '))

Expand Down
6 changes: 3 additions & 3 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export default defineNuxtConfig({
site: {
url: 'https://docus.dev',
},
docus: {
assistant: {
enabled: Boolean(process.env.MISTRAL_API_KEY),
apiPath: '/api/assistant',
},
},

// Explicitly disable i18n for playground testing (enabled by .nuxtrc)
i18n: false,
})
1 change: 1 addition & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "playground",
"type": "module",
"scripts": {
"dev": "nuxt dev --extends docus",
"build": "nuxt build --extends docus"
Expand Down
58 changes: 48 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ packages:
- playground

overrides:
h3: 1.15.11
# devframe (via @nuxt/fonts) needs h3 v2.
h3@1: 1.15.11
ai: ^7.0.177
'@ai-sdk/vue': ^4.0.177
'@ai-sdk/gateway': ^4.0.150
Expand Down
Loading