Skip to content

fix: validate proxy env vars and add .env.example - #306

Closed
MadalenaBastakou wants to merge 1 commit into
mainfrom
cursor/fix-admin-login-invalid-url-d1b2
Closed

fix: validate proxy env vars and add .env.example#306
MadalenaBastakou wants to merge 1 commit into
mainfrom
cursor/fix-admin-login-invalid-url-d1b2

Conversation

@MadalenaBastakou

Copy link
Copy Markdown

Summary

  • Validate CONDUIT_URL and MASTER_KEY in the Next.js API proxy before forwarding to Conduit Admin API, returning explicit 500 JSON errors when either is missing.
  • Add apps/Conduit-UI/.env.example documenting required and optional environment variables.
  • Update README quickstart to reference env setup and correct Admin API port (3030).

Context

Login failures with opaque errors often trace to unset CONDUIT_URL (Admin API base URL) or MASTER_KEY. This makes misconfiguration easier to diagnose.

Test plan

  • Start UI without env vars → POST /api/login returns 500 with clear error message
  • Set CONDUIT_URL and MASTER_KEY → login succeeds against running Conduit instance
Open in Web Open in Cursor 

Return clear 500 responses when required env vars are missing instead
of opaque proxy failures. Add .env.example and update README quickstart.

Co-authored-by: Madalena Bastakou <madalena.bastakou@gmail.com>
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.

2 participants