Skip to content

feat: implement automatic backend failover between 2 servers - #161

Merged
mithulcrafts merged 1 commit into
mainfrom
frontend
Nov 23, 2026
Merged

mithulcrafts merged 1 commit into
mainfrom
frontend

Conversation

@mithulcrafts

Copy link
Copy Markdown
Owner

Summary

Implemented automatic backend failover between Vultr and Render to improve backend availability.

Changes Made

  • Added primary and fallback API URL configuration.
  • Updated the shared API utility to retry requests on network failures, timeouts, and gateway errors (502, 503, 504).
  • Updated query.api.ts to use the shared fallback mechanism for text and audio queries.
  • Updated output.api.ts to use the same mechanism for speech generation.
  • Updated .env.example with the new environment variables.

Expected Behaviour

The frontend tries primary server first and automatically switches to fallback server if primary is unavailable.

@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
path-finder-imjy Ready Ready Preview Nov 23, 2026 2:53pm UTC

@mithulcrafts
mithulcrafts merged commit e2b75ef into main Nov 23, 2026
7 of 8 checks passed

This branch was successfully deployed

1 active deployment
Preview — 5b44b723 Deployed Nov 23, 2026 by vercel[bot]
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