Skip to content

feat: dynamically fallback to local server API during development#109

Open
KGFCH2 wants to merge 1 commit into
Mrinalray:mainfrom
KGFCH2:enhancement/frontend-dynamic-api-detection
Open

feat: dynamically fallback to local server API during development#109
KGFCH2 wants to merge 1 commit into
Mrinalray:mainfrom
KGFCH2:enhancement/frontend-dynamic-api-detection

Conversation

@KGFCH2
Copy link
Copy Markdown
Contributor

@KGFCH2 KGFCH2 commented May 26, 2026

Related Issue

Closes #108

Summary

Detects local development hosts (localhost and 127.0.0.1) and redirects requests to the local API server instead of the hardcoded Netlify production endpoint.

Changes Made

  • Implemented dynamic api host router in script.js

Testing

  • Verified request routing behaviors locally.

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.

Dynamically switch API endpoint to local server when running in development environment

1 participant