Skip to content

fix: VitePress base + CF Pages _redirects - #361

Merged
ajianaz merged 2 commits into
mainfrom
fix/base-plus-redirects
Jun 14, 2026
Merged

ajianaz merged 2 commits into
mainfrom
fix/base-plus-redirects

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Adds base config and _redirects for CF Pages routing.

@ajianaz
ajianaz merged commit 39ceb4d into main Jun 14, 2026
1 check passed
Comment thread docs/public/_redirects
@@ -0,0 +1 @@
/docs/uteke/* /:splat 200
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

❌ Blocked — critical issues found.

🔴 Error (2)

  • .github/workflows/deploy-website.yml:56 — The pages deploy command no longer passes --branch=main. In Wrangler Pages deployments, the branch value determines whether the upload is treated as the production branch or a preview deployment. Since preCommands creates the project with --production-branch=main, omitting the matching branch here risks publishing this workflow's output as a non-production deployment or with different routing/behavior than intended.
  • docs/public/_redirects:1 — The new redirect rule /docs/uteke/* /:splat 200 rewrites every request under /docs/uteke/ to the site root path. For example, /docs/uteke/guide/getting-started becomes /guide/getting-started. However, the VitePress config still sets base: '/docs/uteke/', so built asset and route URLs are expected to live under that prefix. This mismatch can cause nested routes and client-side navigation to resolve against paths that do not exist in the deployed output.

Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz deleted the fix/base-plus-redirects branch July 9, 2026 14:28
ajianaz added a commit that referenced this pull request Aug 13, 2026
fix: VitePress base + CF Pages _redirects
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