← Files AgentMarkupARCHIVED FILE
skills/agentmarkup/assets/templates/vite.config.agentmarkup.ts
1.48 KB · Sep 30, 2026 · 23:14 UTC
import { defineConfig } from 'vite';
import { agentmarkup } from '@agentmarkup/vite';
export default defineConfig({
plugins: [
// Keep existing framework plugins here, then add agentmarkup once.
agentmarkup({
site: 'https://example.com',
name: 'Example',
description: 'Machine-readable metadata for this site.',
llmsTxt: {
sections: [
{
title: 'Pages',
entries: [
{
title: 'Home',
url: '/',
description: 'Homepage and primary site overview.',
},
],
},
],
},
// Enable when the built HTML is thin, noisy, or client-rendered. Optional when it is already substantial.
markdownPages: {
enabled: true,
},
// Enable Content-Signal only after the user chooses this policy.
// contentSignalHeaders: {
// enabled: true,
// aiTrain: 'yes',
// search: 'yes',
// aiInput: 'yes',
// },
globalSchemas: [
{
preset: 'webSite',
name: 'Example',
url: 'https://example.com',
},
],
// Add crawler directives only after the user chooses allow/disallow policy.
// aiCrawlers: {
// GPTBot: 'allow',
// ClaudeBot: 'allow',
// PerplexityBot: 'allow',
// 'Google-Extended': 'allow',
// },
validation: {
warnOnMissingSchema: true,
},
}),
],
});
SHA-256: fa0a97a3f1530ef33a396a900e92507f5dd9d0fd6c89c127193fbfc206f82682