đ Patch Changes
-
#11231
58d7dbbThanks @ematipico! - Fixes a regression forgetViteConfig, where the inline config wasnât merged in the final config. -
#11228
1e293a1Thanks @ascorbic! - UpdatesgetCollection()to always return a cloned array -
#11207
7d9aac3Thanks @ematipico! - Fixes an issue in the rewriting logic where old data was not purged during the rewrite flow. This caused some false positives when checking the validity of URL path names during the rendering phase. -
#11189
75a8fe7Thanks @ematipico! - Improve error message when usinggetLocaleByPathon path that doesnât contain any locales. -
#11195
0a6ab6fThanks @florian-lefebvre! - Adds support for enums toastro:envYou can now call
envField.enum:import { defineConfig, envField } from 'astro/config';export default defineConfig({experimental: {env: {schema: {API_VERSION: envField.enum({context: 'server',access: 'secret',values: ['v1', 'v2'],}),},},},}); -
#11210
66fc028Thanks @matthewp! - Close the iterator only after rendering is complete -
#11195
0a6ab6fThanks @florian-lefebvre! - Adds additional validation options toastro:envastro:envschema datatypesstringandnumbernow have new optional validation rules:import { defineConfig, envField } from 'astro/config';export default defineConfig({experimental: {env: {schema: {FOO: envField.string({// ...max: 32,min: 3,length: 12,url: true,includes: 'foo',startsWith: 'bar',endsWith: 'baz',}),BAR: envField.number({// ...gt: 2,min: 3,lt: 10,max: 9,int: true,}),},},},}); -
#11211
97724daThanks @matthewp! - Let middleware handle the original request URL -
#10607
7327c6aThanks @frankbits! - Fixes an issue where a leading slash created incorrect conflict resolution between pages generated from static routes and catch-all dynamic routes