feat: implement dynamic API proxying to FastAPI backend

- Added a new route handler for dynamic API requests, allowing proxying to the FastAPI backend.
- Removed the previous rewrite configuration in next.config.ts for cleaner integration.
- Updated .env.example to clarify backend URL usage.
This commit is contained in:
Anish Sarkar 2026-04-22 05:44:03 +05:30
parent e86d279d55
commit 9ecccc5403
3 changed files with 65 additions and 16 deletions

View file

@ -1,7 +1,6 @@
NEXT_PUBLIC_FASTAPI_BACKEND_URL=http://localhost:8000
# Server-only. Internal backend URL used by Next.js server code.
# Falls back to NEXT_PUBLIC_FASTAPI_BACKEND_URL when unset.
FASTAPI_BACKEND_INTERNAL_URL=https://your-internal-backend.example.com
NEXT_PUBLIC_FASTAPI_BACKEND_AUTH_TYPE=LOCAL or GOOGLE