Skip to content

Commit

Permalink
fix: add caution
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Oct 7, 2024
1 parent 00ea452 commit 09506af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/content/docs/en/reference/container-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ For each official Astro integration, import and use the `getContainerRenderer()`

For renderer packages outside the `@astrojs` npm org, look in their documentation for `getContainerRenderer()` or a similar function provided.

When using `vite` (`vitest`, Astro integrations, etc.), the renderers are loaded with the function `loadRenderers()` from the virtual module `astro:container`. Outside `vite`, you'll have to load the renderers manually.
When using `vite` (`vitest`, Astro integrations, etc.), the renderers are loaded with the function `loadRenderers()` from the virtual module `astro:container`.

:::caution
Outside `vite` or for on-demand usage, you'll have to [load the renderers manually](#adding-a-renderer-manually).
:::

The following example provides the necessary object to render an Astro component that renders a React component and a Svelte component:

Expand Down

0 comments on commit 09506af

Please sign in to comment.