medusajs / b2b-starter-medusa

Official Medusa B2B Starter template. Features common B2B ecommerce requirements and can be easily adapted and extended.
https://dub.sh/medusa-b2b-starter
MIT License
140 stars 37 forks source link

MedusaJS2 Deployment - Admin Panel Stuck on `localhost` URL After Changing Backend URL #76

Closed black-spidera closed 4 days ago

black-spidera commented 3 weeks ago

Hello,

I’m deploying a MedusaJS2 project and am running into an issue with the admin panel login. Despite updating the backend URL in the .env file and even hard-coding my domain name where localhost:9000 was used, it still defaults to http://localhost:9000/auth/user/emailpass.

I've already tried restarting the server and clearing any relevant cache, but nothing seems to work. Has anyone faced this issue before, or does anyone have suggestions on how to ensure the admin panel uses my domain URL instead of defaulting to localhost?

Thanks in advance!

Screenshot 2024-10-30 at 8 54 42 PM Screenshot 2024-10-30 at 8 54 31 PM
Satwikloka commented 1 week ago

hey, where did you deployed your backend? can you help me out to deploy....

riqwan commented 1 week ago

@black-spidera, @Satwikloka - The config for the sdk is set here - apps/storefront/src/lib/config.ts, can you log the MEDUSA_BACKEND_URL and process.env.NEXT_PUBLIC_MEDUSA_BACKEND_URL to see what you're getting?

princessfrombabylon99 commented 1 week ago

@black-spidera Could you try to add your IP address in CORS

riqwan commented 4 days ago

Closing this, feel free to reopen if this is still an issue