You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sentry.server.config.js fills up with globalThis #17179
Do it again and watch the globalThis entries just pile up.
Expected Result
I don't know if we're expecting a singleglobalThis block there? Presumably it has some purpose? But we definitely aren't expecting them to just be concatenated to the end.
FWIW mine are 350+ lines long each. The file grows out of control real fast.
Activity
linear commentedon Jul 26, 2025
JS-774 sentry.server.config.js fills up with globalThis
johnnydecimal commentedon Jul 26, 2025
Note that the example repo has
9.42.0but I confirmed that this change occurred at9.41.0.Ah here we go. Commit 726c86842915111bca94d3787bc203ba05cd07e7 introduced this:
sentry-javascript/packages/astro/src/integration/index.ts
Line 184 in 68d7ee4
To my untrained eye it's not checking whether that already exists. Hence every time you just get a new block.
I'd offer to PR this but believe me you don't want my code.
chargome commentedon Jul 28, 2025
@johnnydecimal thanks for reporting!
cc @s1gr1d this comes from the parameterized routes PR I assume?
s1gr1d commentedon Jul 28, 2025
Hello and thanks for raising this. I reverted the changes for now and we will release this as soon as possible.
fix(v9/astro): Revert Astro v5 storing route data to `globalThis` (#1…
s1gr1d commentedon Jul 28, 2025
This is released in 9.42.1.
fix(astro): Construct parametrized route during runtime (#17190)
fix(astro): Construct parametrized route during runtime (#17190)
github-actions commentedon Jul 31, 2025
A PR closing this issue has just been released 🚀
This issue was referenced by PR #17190, which was included in the 10.0.0 release.