import { websiteUrl, seoPages, socialImage } from '../seo.config.js'; const absolute = (path) => new URL(path, websiteUrl).href; // NO SEO (2026-12-02): no sitemap, llms.txt or crawler courting. robots.txt just allows everyone. export const robots = 'User-agent: *\nAllow: /\n'; export function seoPlugin() { return { name: 'pulsecanvas-seo', transformIndexHtml: { order: 'pre', handler(html, context) { const path = context.path.replace(/index\.html$/, '').replace(/\/{2,}/g, '/'); if (path === "/404.html") return html; const page = seoPages[path]; if (!page) throw new Error(`Missing page metadata for ${context.path}`); // Replace legacy metadata, so every route has exactly one canonical title and description. html = html.replace('href="/images/app-icon.png"', 'href="/images/favicon.png"') .replace(/