Skip to content

fix: CLI docs returning 404 due to missing middleware route#575

Merged
eskp merged 1 commit into
stagingfrom
fix/docs-cli-404
Mar 15, 2026
Merged

fix: CLI docs returning 404 due to missing middleware route#575
eskp merged 1 commit into
stagingfrom
fix/docs-cli-404

Conversation

@eskp
Copy link
Copy Markdown

@eskp eskp commented Mar 15, 2026

Summary

  • The middleware route allowlist was not updated when the CLI section was added in docs: add CLI documentation section #572, so all /cli/* pages were rewritten to /404 before reaching Nextra's page component
  • Adds a local postcss.config.mjs so the docs-site dev server stops inheriting the root project's Tailwind-based PostCSS config (which requires @tailwindcss/postcss the docs-site doesn't have)

Test Plan

  • Visit /cli -- should render CLI overview page
  • Visit /cli/commands/kh_auth_login -- should render command reference
  • Visit /cli/quickstart and /cli/concepts -- should render
  • Run pnpm dev inside docs-site/ -- no @tailwindcss/postcss error
  • Existing docs sections (API, Plugins, etc.) still load normally

The middleware route allowlist was not updated when the CLI section
was added in #572, causing all /cli/* pages to rewrite to /404.

Also add a local postcss config so the docs-site dev server stops
inheriting the root project's Tailwind-based postcss config.
@eskp eskp requested review from a team, OleksandrUA, joelorzet and suisuss and removed request for a team March 15, 2026 11:41
@eskp eskp merged commit 986c2a0 into staging Mar 15, 2026
19 checks passed
@eskp eskp deleted the fix/docs-cli-404 branch March 15, 2026 11:52
@github-actions
Copy link
Copy Markdown

🧹 PR Environment Cleaned Up

The PR environment has been successfully deleted.

Deleted Resources:

  • Namespace: pr-575
  • All Helm releases (Keeperhub, Scheduler, Event services)
  • PostgreSQL Database (including data)
  • LocalStack, Redis
  • All associated secrets and configs

All resources have been cleaned up and will no longer incur costs.

@github-actions
Copy link
Copy Markdown

ℹ️ No PR Environment to Clean Up

No PR environment was found for this PR. This is expected if:

  • The PR never had the deploy-pr-environment label
  • The environment was already cleaned up
  • The deployment never completed successfully

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