Skip to content
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

fix(i18n): server island request #13112

Merged
merged 2 commits into from
Jan 31, 2025
Merged

fix(i18n): server island request #13112

merged 2 commits into from
Jan 31, 2025

Conversation

ematipico
Copy link
Member

Changes

Closes #12817

The i18n middleware now checks if the request is coming from a server island, and if so, it doesn't handle it.

Also did a minor refactor to move some utility functions in the proper file.

Testing

I added a new test with a new fixture to not tarnish the existing ones. I also tested it locally using OP reproduction. It now serves the island correctly.

Docs

N/A

Copy link

changeset-bot bot commented Jan 31, 2025

🦋 Changeset detected

Latest commit: 5ead785

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jan 31, 2025
Copy link

codspeed-hq bot commented Jan 31, 2025

CodSpeed Performance Report

Merging #13112 will not alter performance

Comparing fix/server-island-i18n (e21a6e8) with main (3a26e45)

Summary

✅ 6 untouched benchmarks

@ematipico ematipico force-pushed the fix/server-island-i18n branch from 97956c0 to 01cb6d0 Compare January 31, 2025 15:06
@ematipico ematipico force-pushed the fix/server-island-i18n branch from 01cb6d0 to 5ead785 Compare January 31, 2025 15:37
@ematipico ematipico merged commit 0fa5c82 into main Jan 31, 2025
6 checks passed
@ematipico ematipico deleted the fix/server-island-i18n branch January 31, 2025 16:15
@astrobot-houston astrobot-houston mentioned this pull request Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server Island fails when using i18 and prefixDefaultLocale set to true
2 participants