Skip to content

fix(v9/astro): Revert Astro v5 storing route data to globalThis #17185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2025

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jul 28, 2025

To share the route data from build-time with the server runtime, the data was written on globalThis. However, this resulted in actually modifying the server config of the working directory and not the build directory (dist folder).

This PR reverts this change for now, resulting in not having all server requests parametrized. We still do have some parametrization, as route parametrization was recently improved for Astro v4 as well (without the 'astro:routes:resolved' hook)

Fixes #17179

@s1gr1d s1gr1d merged commit 2524460 into v9 Jul 28, 2025
146 checks passed
@s1gr1d s1gr1d deleted the sig/astro-revert-route branch July 28, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants