Internal Service: generate_boosted_files
Generates all static files for a boosted page at the ROOT level of the site.Function Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
content_result | dict | Output from Step 3 (generate_boosted_content) with additional metadata |
content_result Structure
Returns
Generated Files
| File | Purpose |
|---|---|
pages/{slug}.js | Next.js page component for routing |
public/{slug}/index.html | Static HTML for direct access |
public/{slug}/llms.txt | AI-optimized content for crawlers |
public/{slug}/data.json | Structured data (Schema.org Article) |
URL Structure
All boosted pages are placed at ROOT level for better AI SEO:- Business boosted:
/{slug}/ - Product boosted:
/{slug}/
/ai_blog/ prefix.
Canonical URLs
Critical: All public-facing URLs usesource_url (customerβs real domain), NOT ai_site_url. This ensures search engines index the correct domain.
Template Dependencies
Uses templates fromchildren/templates/:
generate_boosted_html()- HTML with proper meta tagsgenerate_boosted_llms_txt()- AI-optimized text contentslugify()- URL-safe slug generation