Skip to content

Conversation

@kojibai
Copy link
Owner

@kojibai kojibai commented Jan 1, 2026

Motivation

  • The lahmahtor proxy was pointing at incorrect upstream hosts preventing /api/lahmahtor requests from reaching the intended backend.
  • Requests to /api/lahmahtor were not being handled by any Vercel API route, so nothing loaded for those paths.

Description

  • Updated upstream constants in api/proxy/lahmahtorProxy.mjs to use PRIMARY = "https://m.kai.ac" and BACKUP = "https://memory.kaiklok.com".
  • Added a Vercel API route api/lahmahtor/[[...path]].js that builds the request URL and forwards requests to the proxy handler via handleLahmahtorProxy.
  • Introduced a buildRequestUrl helper inside the new route to construct the proxied URL from the incoming request, and set config.runtime to nodejs for the route.

Testing

  • No automated tests were executed for these changes.
  • Manual validation was not recorded in automated test output.

Codex Task

@vercel
Copy link

vercel bot commented Jan 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
phi-network-5aii Ready Ready Preview, Comment Jan 1, 2026 3:06pm

@kojibai kojibai merged commit aa98095 into main Jan 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants