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: sitemap.xml should fetch directly #939

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

abvthecity
Copy link
Contributor

@abvthecity abvthecity commented May 29, 2024

Before:

sitemap.xml calls fetch("/api/fern-docs/sitemap") which calls fetch("registry.buildwithfern.com")

This fails when x-fern-host is overridden.

After:

sitemap.xml calls fetch("registry.buildwithfern.com") directly.

Also in this PR:

/:prefix*/sitemap.xml is always rewritten to /api/fern-docs/sitemap.xml

Copy link

vercel bot commented May 29, 2024

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

Name Status Preview Updated (UTC)
fern-dev ✅ Ready (Inspect) Visit Preview May 29, 2024 7:18pm
3 Ignored Deployments
Name Status Preview Updated (UTC)
fern-prod ⬜️ Ignored (Inspect) May 29, 2024 7:18pm
fontawesome-cdn ⬜️ Ignored (Inspect) May 29, 2024 7:18pm
private-docs ⬜️ Ignored (Inspect) May 29, 2024 7:18pm

@abvthecity abvthecity merged commit dab9748 into main May 29, 2024
18 checks passed
@abvthecity abvthecity deleted the ajiang/sitemap.xml branch May 29, 2024 19:25
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