Skip to content

fix(site): BUY-65830 restore missing public route pages and fix /health redirect - #319

Open
BuyWhere wants to merge 1 commit into
mainfrom
buy64112-live-fix
Open

fix(site): BUY-65830 restore missing public route pages and fix /health redirect#319
BuyWhere wants to merge 1 commit into
mainfrom
buy64112-live-fix

Conversation

@BuyWhere

@BuyWhere BuyWhere commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

Restores 6 missing public route pages and fixes the /health endpoint.

Root Cause

Route files for , , , , , and existed on disk but were never committed to git. Since the site deploys from the main branch, these routes returned 404 in production.

Additionally, /health was a 308 redirect to api.buywhere.ai/health instead of returning 200 directly.

Changes

  • New route pages (6 files):

    • src/app/how-it-works/page.tsx
    • src/app/product/page.tsx
    • src/app/features/page.tsx
    • src/app/developers/api/page.tsx
    • src/app/developers/mcp/page.tsx
    • src/app/developers/sitemap/us/route.ts
  • Fixed routes (2 files):

    • src/app/health/route.ts — return 200 directly instead of 308 redirect
    • src/app/api/health/route.ts — import reordering + edge runtime

Verification

All imported components (Nav, Footer, Schema, HowItWorksSection, HomeProductSearch, buildWebPageSchema, buildPageMetadata) exist in the codebase. Route files follow the same patterns as other pages in src/app/.

Fixes: BUY-65830, BUY-65679

…th redirect

Root cause: /how-it-works, /product, /features, /developers/mcp,
/developers/api, and /developers/sitemap/us route files existed on disk
but were never committed to git. Production deploys from main, so these
routes returned 404.

Additionally, /health was a 308 redirect to api.buywhere.ai/health
instead of a direct 200 response.

- Add src/app/how-it-works/page.tsx
- Add src/app/product/page.tsx
- Add src/app/features/page.tsx
- Add src/app/developers/api/page.tsx
- Add src/app/developers/mcp/page.tsx
- Add src/app/developers/sitemap/us/route.ts
- Fix src/app/health/route.ts: return 200 directly instead of 308 redirect
- Fix src/app/api/health/route.ts: import ordering + edge runtime

Refs: BUY-65830, BUY-65679
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