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.
Describe the bug
The upload page correctly uses
process.env.NEXT_PUBLIC_API_URLto find the backend. But both login and signup pages hardcode the API URL:http://localhost:5000/api/auth/loginhttp://localhost:5000/api/auth/signupThis 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.tsxsrc/app/auth/signup/page.tsxExpected behavior
Both pages should use
process.env.NEXT_PUBLIC_API_URLthe same way the upload page does.I would like to work on this issue under GSSoC.
Thank you.