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

general: fix lang links for bots #848

Merged
merged 13 commits into from
Dec 19, 2024
Merged

general: fix lang links for bots #848

merged 13 commits into from
Dec 19, 2024

Conversation

zbycz
Copy link
Owner

@zbycz zbycz commented Dec 19, 2024

Description

There is a bug on vercel deployments, that ctx.asPath contains language prefix, even though it shouldn't.

Because of this, when bot opened a page like /cs/node/123, it was then trying to access /xx/cs/node/123 for all our languages. Thus generated exceptional traffic (20k requests) which ended in 404, but still we had to pay it.

related:

Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Dec 19, 2024 4:23pm

@zbycz zbycz merged commit 91ac420 into master Dec 19, 2024
3 checks passed
@zbycz zbycz deleted the fix-lang-links branch December 19, 2024 16:28
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.

1 participant