π Patch Changes
- #13190
c6bf6b3Thanks @lee-arnold! - Fixes the image endpoint entrypoint
c6bf6b3 Thanks @lee-arnold! - Fixes the image endpoint entrypoint#13145 8d4e566 Thanks @ascorbic! - Automatically configures filesystem storage when experimental session enabled
If the experimental.session flag is enabled when using the Node adapter, Astro will automatically configure session storage using the filesystem driver. You can still manually configure session storage if you need to use a different driver or want to customize the session storage configuration.
See the experimental session docs for more information on configuring session storage.
#11679 ea71b90 Thanks @florian-lefebvre! - Adds stable support for astro:env
#11770 cfa6a47 Thanks @Princesseuh! - Removed support for the Squoosh image service. As the underlying library libsquoosh is no longer maintained, and the image service sees very little usage we have decided to remove it from Astro.
Our recommendation is to use the base Sharp image service, which is more powerful, faster, and more actively maintained.
import { squooshImageService } from "astro/config";import { defineConfig } from "astro/config";
export default defineConfig({ image: { service: squooshImageService() }});If you are using this service, and cannot migrate to the base Sharp image service, a third-party extraction of the previous service is available here: https://github.com/Princesseuh/astro-image-service-squoosh
#11535 932bd2e Thanks @matthewp! - Move polyfills up before awaiting the env module in the Node.js adapter.
Previously the env setting was happening before the polyfills were applied. This means that if the Astro env code (or any dependencies) depended on crypto, it would not be polyfilled in time.
Polyfills should be applied ASAP to prevent races. This moves it to the top of the Node adapter.
5848d97 Thanks @florian-lefebvre! - Fixes astro:env getSecret compatibility2bdca27 Thanks @florian-lefebvre! - Adds support for experimental astro:env released in Astro 4.10d0248bc Thanks @dkobierski! - Fixes suppressed logs when error occurs28e33a2f9c04373eae5da2e6edb0dc2981bce790 Thanks @castarco! - Fixes a bug where the preview server wrongly appends trailing slashes to subresource URLs.83f9105cd50e2756d02ca2be73ab84f9d582d3f8 Thanks @lilnasy! - Prevents crashes caused by rejections of offshoot promises.d5277df5a4d1e9a8a7b6c8d7b87912e13a163f7f Thanks @Princesseuh! - Fixes an issue where malformed requests could cause the server to error in certain cases.b47dcaa25968ec85ba96fce23381c94a94e389f6 Thanks @SatanshuMishra! - Fixes the server.host option to properly listen on all network interfaces when set to true8cd38f02456640c063552aef00b2b8a216b3935d Thanks @log101! - Fixes custom headers are not added to the Node standalone server responses in preview mode041fdd5c89920f7ccf944b095f29e451f78b0e28 Thanks @ematipico! - Adds experimental support for internationalization domainsa12196d6b59e39f5d405734ecdbf6f6b42b39a93 Thanks @msxdan! - Add trailingSlash support to NodeJS adapter#9661 d6edc7540864cf5d294d7b881eb886a3804f6d05 Thanks @ematipico! - If host is unset in standalone mode, the server host will now fallback to localhost instead of 127.0.0.1. When localhost is used, the operating system can decide to use either ::1 (ipv6) or 127.0.0.1 (ipv4) itself. This aligns with how the Astro dev and preview server works by default.
If you relied on 127.0.0.1 (ipv4) before, you can set the HOST environment variable to 127.0.0.1 to explicitly use ipv4. For example, HOST=127.0.0.1 node ./dist/server/entry.mjs.
#9661 d6edc7540864cf5d294d7b881eb886a3804f6d05 Thanks @ematipico! - Breaking: Minimum required Astro version is now 4.2.0.
Reorganizes internals to be more maintainable.
d6edc7540864cf5d294d7b881eb886a3804f6d05 Thanks @ematipico! - Fixes an issue where the preview server appeared to be ready to serve requests before binding to a port.48f47b50a0f8bc0fa51760215def36640f79050d Thanks @lilnasy! - Fixes a bug where an error while serving response stopped the server.1baf0b0d3cbd0564954c2366a7278794fad6726e Thanks @sarah11918! - Updates README