Deployment issue

I finished working on the app within Replit using the agent and deployed it to a Replit server with a basic configuration. After deployment, I noticed that the authentication mechanism and workflow don’t function the same as they did in the Replit environment. Specifically, the app hangs during the authentication process and doesn’t redirect to the dashboard as expected.

I also tried increasing the memory and resources for the server, but it didn’t help. Despite several attempts and redeployments using the agent, the issue persists. Has anyone else faced similar problems with authentication or redirection after deployment, or found a solution?

App URL : https://demodepro.replit.app/

I was able to register an account on your site, but not login. I assume the registration went through because I wasn’t able to re-register with the same credentials. Did you set up your authentication process within Replit itself, or did you configure an external service like Firebase for auth?

Thank you for checking in! I am using native replit auth environment, no any third party services.

I noticed a 401 Unauthorized error in Chrome DevTools when trying to register:

GET https://demodepro.replit.app/api/user 401 (Unauthorized)
queryFn @ index-D-yPFCEP.js:262

Maybe try sharing this error message with the Replit Agent? It might help them identify what’s going wrong with the auth flow after deployment.

Thank you for checking my issue. I noticed that as well sent to the agent several times and then deployed after the changes - same issue.



Thank you everyone! Able to fix it! Lets keep building

2 Likes

Great to hear! Looks like a cool site. Keep us posted.