export default defineNuxtConfig({
aiReady: {
// options
}
})
enabledbooleantrueaiReady: {
enabled: process.env.NODE_ENV === 'production'
}
debugbooleanfalseEnable debug logging for module operations.
mdreamOptionsHTMLToMarkdownOptions & { preset?: 'minimal' }{ preset: 'minimal' }Configure mdream HTML-to-markdown conversion.
export default defineNuxtConfig({
aiReady: {
mdreamOptions: {
preset: 'minimal'
}
}
})
markdownCacheHeaders{ maxAge?: number, swr?: boolean }{ maxAge: 3600, swr: true }Cache settings for runtime markdown endpoints.
| Option | Type | Default | Description |
|---|---|---|---|
maxAge | number | 3600 | Cache duration in seconds |
swr | boolean | true | Stale-while-revalidate |
llmsTxtLlmsTxtConfigConfigure llms.txt generation.
export default defineNuxtConfig({
aiReady: {
llmsTxt: {
sections: [
{
title: 'API Reference',
links: [
{ title: 'REST API', href: '/docs/api', description: 'API docs' }
]
}
],
notes: 'Built with Nuxt AI Ready'
}
}
})
LlmsTxtSection:
| Property | Type | Description |
|---|---|---|
title | string | Section title |
description | string | string[] | Section description |
links | { title, href, description? }[] | Links in section |
LlmsTxtConfig:
| Property | Type | Description |
|---|---|---|
sections | LlmsTxtSection[] | Custom sections |
notes | string | string[] | Notes at end |
contentSignalfalse | { aiTrain?: boolean, search?: boolean, aiInput?: boolean }falseContent Signal directives for robots.txt. See Content Signals guide.
export default defineNuxtConfig({
aiReady: {
contentSignal: {
aiTrain: false, // Block training
search: true, // Allow search indexing
aiInput: true, // Allow RAG/grounding
}
}
})
mcp{ tools?: boolean, resources?: boolean }{ tools: true, resources: true }Control MCP features when @nuxtjs/mcp-toolkit installed.
export default defineNuxtConfig({
aiReady: {
mcp: {
tools: true, // list_pages, search_pages_fuzzy
resources: true, // pages resource
}
}
})
See MCP guide for tool/resource details.
cacheMaxAgeSecondsnumber600 (10 minutes)Cache duration for llms.txt route handlers. Uses stale-while-revalidate.
export default defineNuxtConfig({
aiReady: {
cacheMaxAgeSeconds: 3600 // 1 hour
}
})