🐞 Patch Changes
-
#13233
32fafebThanks @joshmkennedy! - Ensures consistent behaviour ofAstro.rewrite/ctx.rewritewhen usingbaseandtrailingSlashoptions. -
#13003
ea79054Thanks @chaegumi! - Fixes a bug that caused thevite.basevalue to be ignored when runningastro dev -
#13299
2e1321eThanks @bluwy! - Usestinyglobbyfor globbing files -
#13233
32fafebThanks @joshmkennedy! - Ensures thatAstro.url/ctx.urlis correctly updated with thebasepath after rewrites.This change fixes an issue where
Astro.url/ctx.urldid not include the configured base path after Astro.rewrite was called. Now, the base path is correctly reflected in Astro.url.Previously, any rewrites performed through
Astro.rewrite/ctx.rewritefailed to append the base path toAstro.url/ctx.rewrite, which could lead to incorrect URL handling in downstream logic. By fixing this, we ensure that all routes remain consistent and predictable after a rewrite.If you were relying on the work around of including the base path in astro.rewrite you can now remove it from the path.