I have a nextjs as frontend and nestjs as backend MVP project.
I'm hosting this project locally just for presentation for about an hour then im going to shut it down. I have configure my asus router to forward any request to my local IP and its working because my friend can open it from Vietnam to California. The problem is when he tries to login, he cant we get this error. (failed) net::ERR_CONNECTION_REFUSED on browser when I inspect. Now my login route on nextjs is still set as localhost:8000/auth/login this is where I'm confused because isnt it localhost will just connect to my public IP? or should I change the localhost to my public IP then create another port forwarding profile on my asus router?