🐞 Patch Changes
- #14158
89e9364Thanks @bjohansebas! - Prevents deprecation warnings in Node 24
89e9364 Thanks @bjohansebas! - Prevents deprecation warnings in Node 24#14115 270e009 Thanks @ascorbic! - Removes “Open in x” badges from the README of the official Astro templates when a new project is created
#14115 270e009 Thanks @ascorbic! - Adds support for marking sections in template READMEs to be removed when the create astro command is used to create a new project
Theme authors can now use magic comments in template READMEs to mark sections that should not be included when a user runs create-astro with the --template flag to create a new project.
This allows templates to have content that is visible when viewed in the source repo but not when the template is copied for use in a new project. This is useful for content that is appropriate for a theme’s own repository, but will not be useful to someone using the theme, such as an “Open this repository in StackBlitz” badge where the URL is hardcoded .
Use the magic comments <!-- ASTRO:REMOVE:START --> and <!-- ASTRO:REMOVE:END --> to indicate content to be excluded from your README during the create astro process.
<!-- ASTRO:REMOVE:START -->
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
<!-- ASTRO:REMOVE:END -->Note that these comments only remove content when new projects are created using create astro. When your theme template is forked, your README will be copied in its entirety.
485c2f0 Thanks @apatel369! - Fixes an issue where installing Astro beta using create-astro displays the wrong Astro version in the installation messages.#13809 3c3b492 Thanks @ascorbic! - Increases minimum Node.js version to 18.20.8
Node.js 18 has now reached end-of-life and should not be used. For now, Astro will continue to support Node.js 18.20.8, which is the final LTS release of Node.js 18, as well as Node.js 20 and Node.js 22 or later. We will drop support for Node.js 18 in a future release, so we recommend upgrading to Node.js 22 as soon as possible. See Astro’s Node.js support policy for more details.
:warning: Important note for users of Cloudflare Pages: The current build image for Cloudflare Pages uses Node.js 18.17.1 by default, which is no longer supported by Astro. If you are using Cloudflare Pages you should override the default Node.js version to Node.js 22. This does not affect users of Cloudflare Workers, which uses Node.js 22 by default.
5dd2d3f Thanks @florian-lefebvre! - Removes unused codea9fd03f Thanks @sarah11918! - Updates the wording for choosing the “minimal” starter template options#12083 9263e96 Thanks @Princesseuh! - Reworks the experience of creating a new Astro project using the create astro CLI command.
tsconfig.json.astro check is no longer automatically added to the build script.--add flag to install additional integrations after creating a project. For example, pnpm create astro --add react will create a new Astro project and install the React integration.#12083 9263e96 Thanks @Princesseuh! - Reworks the experience of creating a new Astro project using the create astro CLI command.
tsconfig.json.astro check is no longer automatically added to the build script.--add flag to install additional integrations after creating a project. For example, pnpm create astro --add react will create a new Astro project and install the React integration.7d70ba3 Thanks @florian-lefebvre! - Updates the default Astro config with // @ts-check if the Typescript preset is strict or strictest