Skip to content

Bug: Auth pages hardcode localhost:5000 instead of using NEXT_PUBLIC_API_URL #17

@pericharlabindhumadhavi-data

Description

Describe the bug
The upload page correctly uses process.env.NEXT_PUBLIC_API_URL to find the backend. But both login and signup pages hardcode the API URL:

http://localhost:5000/api/auth/login
http://localhost:5000/api/auth/signup

This means login and signup silently fail in any deployed environment while the upload page works fine inconsistent and deployment-breaking.

Where is it happening

  • src/app/auth/login/page.tsx
  • src/app/auth/signup/page.tsx

Expected behavior
Both pages should use process.env.NEXT_PUBLIC_API_URL the same way the upload page does.

I would like to work on this issue under GSSoC.
Thank you.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions