🐞 Patch Changes
-
#11823
a3d30a6Thanks @DerTimonius! - fix: improve error message when inferSize is used in local images with the Image component -
#12227
8b1a641Thanks @florian-lefebvre! - Fixes a case where environment variables would not be refreshed when usingastro:env -
#12239
2b6daa5Thanks @ematipico! - BREAKING CHANGE to the experimental Container API onlyChanges the default page rendering behavior of Astro components in containers, and adds a new option
partial: falseto render full Astro pages as before.Previously, the Container API was rendering all Astro components as if they were full Astro pages containing
<!DOCTYPE html>by default. This was not intended, and now by default, all components will render as page partials: only the contents of the components without a page shell.To render the component as a full-fledged Astro page, pass a new option called
partial: falsetorenderToString()andrenderToResponse():import { experimental_AstroContainer as AstroContainer } from 'astro/container';import Card from '../src/components/Card.astro';const container = AstroContainer.create();await container.renderToString(Card); // the string will not contain `<!DOCTYPE html>`await container.renderToString(Card, { partial: false }); // the string will contain `<!DOCTYPE html>`