sayan404 / TaskPulse

an application that helps people to register and track there work
https://taskpulse.onrender.com
MIT License
7 stars 11 forks source link

Fixing Issue of Login Route #33

Closed JavidSumra closed 7 months ago

JavidSumra commented 7 months ago

Issue #29 Title : Bug: Currently, we can access the /login route even in a logged-in situation. Fixing Issue of Login Route By Use of LocalStorage

JavidSumra commented 7 months ago

Hey @sayan404 Sir Please Checkout My PR

sayan404 commented 7 months ago

please add the VITE_API_ENDPOINT_DEV and VITE_API_ENDPOINT_PROD both things and raise a commit in production (PROD) mode . @JavidSumra

JavidSumra commented 7 months ago

Hey @sayan404 Sir I am Unable to Understand your point I think you need to set API Endpoint For Production?

sayan404 commented 7 months ago

Yea , just add this to variables in the .env VITE_API_ENDPOINT_DEV=http://localhost:8080 VITE_API_ENDPOINT_PROD=https://taskpulse.onrender.com when you will be pushing changes in the remote branch use VITE_API_ENDPOINT_PROD in the place of VITE_API_ENDPOINT otherwise use VITE_API_ENDPOINT_DEV (in development mode) @JavidSumra

JavidSumra commented 7 months ago

Changes Done @sayan404 Sir

sayan404 commented 7 months ago

good job . @JavidSumra