astro 2.7.0
Minor Changes
-
#7353
76fcdb84dThanks @bholmesdev! - Remove legacy handling for MDX content collections. Ensure you are using@astrojs/mdxv0.18 or above. -
#7385
8e2923cc6Thanks @ematipico! -Astro.localsis now exposed to the adapter API. Node Adapter can now pass in alocalsobject in the SSR handler middleware. -
#7220
459b5bd05Thanks @ematipico! - Shipped a new SSR build configuration mode:split. When enabled, Astro will "split" the singleentry.mjsfile and instead emit a separate file to render each individual page during the build process.These files will be emitted inside
dist/pages, mirroring the directory structure of your page files insrc/pages/, for example:├── pages │ ├── blog │ │ ├── entry._slug_.astro.mjs │ │ └── entry.about.astro.mjs │ └── entry.index.astro.mjsTo enable, set
build.split: truein your Astro config:// src/astro.config.mjs export default defineConfig({ output: 'server', adapter: node({ mode: 'standalone', }), build: { split: true, }, });
Patch Changes
-
#7438
30bb36371Thanks @bluwy! - Fixastro:build:setuphookupdateConfigutility, where the configuration wasn't correctly updated when the hook was fired. -
#7436
3943fa390Thanks @kossidts! - Fix an issue related to the documentation. Destructure the argument of the function to customize the Astro dev server based on the command run. -
#7424
7877a06d8Thanks @bholmesdev! - Update internal types for more stable builds for Astro maintainers. -
#7427
e314a04bfThanks @ematipico! - Correctly emit the middleware code during the build phase. The file emitted is nowdist/middleware.mjs -
#7423
33cdc8622Thanks @bmenant! - Ensure injected/_imageendpoint for image optimization is not prerendered on hybrid output.