Skip to content

[codex] fix legacy llms redirects#1295

Merged
jderochervlk merged 1 commit into
masterfrom
codex/fix-llms-version-redirects
May 9, 2026
Merged

[codex] fix legacy llms redirects#1295
jderochervlk merged 1 commit into
masterfrom
codex/fix-llms-version-redirects

Conversation

@jderochervlk
Copy link
Copy Markdown
Collaborator

Context

Some legacy manual LLM URLs used patch-versioned paths and plural llms-full.txt / llms-small.txt filenames. Those URLs were not covered by the existing Cloudflare _redirects aliases, so requests could miss the current major-version LLM files.

Summary

  • Add explicit redirects for /llms/manual/v13.0.0/* to /llms/manual/v13/*.
  • Add explicit redirects for /llms/manual/v12.0.0/* to /llms/manual/v12/*.
  • Redirect /llms/manual/v11/* and /llms/manual/v11.0.0/* to the current v12 LLM files.
  • Extend redirect tests to assert exact file redirects and ordering before wildcard fallbacks.

Validation

  • node apps/docs/scripts/test-redirects.mjs
  • yarn test
  • git diff --check
  • yarn ci:format apps/docs/scripts/test-redirects.mjs

@jderochervlk jderochervlk marked this pull request as ready for review May 9, 2026 15:56
Redirect patch-versioned manual LLM URLs to their major-version files.

Cover v13.0.0, v12.0.0, and v11/v11.0.0 aliases with redirect tests.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

Cloudflare deployment

Deployement ID: b73e24ca-d33e-4f36-aa89-fb785d680d2b
Deployment Environment: preview

⛅️ wrangler 4.85.0
───────────────────
✨ Compiled Worker successfully
Uploading... (7579/8057)
Uploading... (7738/8057)
Uploading... (7898/8057)
Uploading... (8057/8057)
✨ Success! Uploaded 478 files (7579 already uploaded) (5.48 sec)

✨ Uploading _redirects
✨ Uploading Functions bundle
🌎 Deploying...
✨ Deployment complete! Take a peek over at https://b73e24ca.rescript-lang.pages.dev
✨ Deployment alias URL: https://codex-fix-llms-version-redir.rescript-lang.pages.dev

@jderochervlk jderochervlk marked this pull request as ready for review May 9, 2026 16:05
@jderochervlk jderochervlk enabled auto-merge (squash) May 9, 2026 16:05
@jderochervlk jderochervlk merged commit 673a5cf into master May 9, 2026
6 checks passed
@jderochervlk jderochervlk deleted the codex/fix-llms-version-redirects branch May 9, 2026 16:43
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