diff --git a/docs/offerings-injection.example.html b/docs/offerings-injection.example.html new file mode 100644 index 0000000..59768d0 --- /dev/null +++ b/docs/offerings-injection.example.html @@ -0,0 +1,19 @@ + + + (inside ) --> + + + + (inside , above #root). Removed by the app at start-up. --> +
+ +
diff --git a/index.html b/index.html index 105c987..fd21f90 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,7 @@ +
diff --git a/src/main.tsx b/src/main.tsx index 76c4f07..7ed23b2 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -34,6 +34,10 @@ if (!rootElement) { throw new Error('Root element "#root" not found in index.html'); } +// The CMS host may inject a static, crawler-readable packages list (#packages-static, see +// index.html); the app renders its own packages, so drop the static copy to avoid duplicates. +document.getElementById('packages-static')?.remove(); + createRoot(rootElement).render(