fix(site): BUY-65830 restore missing public route pages and fix /health redirect - #319
Open
BuyWhere wants to merge 1 commit into
Open
fix(site): BUY-65830 restore missing public route pages and fix /health redirect#319BuyWhere wants to merge 1 commit into
BuyWhere wants to merge 1 commit into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
mainbranch, these routes returned 404 in production.Additionally,
/healthwas a 308 redirect toapi.buywhere.ai/healthinstead of returning 200 directly.Changes
New route pages (6 files):
src/app/how-it-works/page.tsxsrc/app/product/page.tsxsrc/app/features/page.tsxsrc/app/developers/api/page.tsxsrc/app/developers/mcp/page.tsxsrc/app/developers/sitemap/us/route.tsFixed routes (2 files):
src/app/health/route.ts— return 200 directly instead of 308 redirectsrc/app/api/health/route.ts— import reordering + edge runtimeVerification
All imported components (
Nav,Footer,Schema,HowItWorksSection,HomeProductSearch,buildWebPageSchema,buildPageMetadata) exist in the codebase. Route files follow the same patterns as other pages insrc/app/.Fixes: BUY-65830, BUY-65679