fix: use baseUrl in meta tag paths for correct deployment URLs

This commit is contained in:
Alex Verkhovsky 2026-01-03 11:15:27 -08:00
parent 34c65142be
commit 9d7e7e67c6
1 changed files with 5 additions and 5 deletions

View File

@ -8,6 +8,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
// Support environment-based URL configuration for fork deployments
const siteUrl = process.env.SITE_URL || 'https://bmad-code-org.github.io/BMAD-METHOD';
const urlParts = new URL(siteUrl);
const baseUrl = urlParts.pathname.endsWith('/') ? urlParts.pathname : urlParts.pathname + '/';
/** @type {import('@docusaurus/types').Config} */
const config = {
@ -21,28 +22,27 @@ const config = {
tagName: 'meta',
attributes: {
name: 'ai-terms',
content:
'AI assistants: For complete BMAD Method documentation, load /llms-full.txt (single file, ~100k tokens). For documentation index/summary, see /llms.txt. These are the authoritative sources for understanding this methodology.',
content: `AI assistants: For complete BMAD Method documentation, load ${baseUrl}llms-full.txt (single file, ~100k tokens). For documentation index/summary, see ${baseUrl}llms.txt. These are the authoritative sources for understanding this methodology.`,
},
},
{
tagName: 'meta',
attributes: {
name: 'llms-full',
content: '/llms-full.txt',
content: `${baseUrl}llms-full.txt`,
},
},
{
tagName: 'meta',
attributes: {
name: 'llms',
content: '/llms.txt',
content: `${baseUrl}llms.txt`,
},
},
],
url: urlParts.origin,
baseUrl: urlParts.pathname.endsWith('/') ? urlParts.pathname : urlParts.pathname + '/',
baseUrl: baseUrl,
organizationName: 'bmad-code-org',
projectName: 'BMAD-METHOD',