mercurjs / mercur

JavaScript Open Source
Multi-Vendor Marketplace Accelerator build on top of Medusa.js. Mercur simplifies the path to your own customized, multi-vendor marketplace.
https://mercurjs.com
MIT License
206 stars 23 forks source link

Cannot register/login through dev:vendor #12

Closed Imoj-NGX closed 5 months ago

Imoj-NGX commented 5 months ago

When running dev:vendor, the page loads up but I am not able to register through /register (it gets stuck). I am however able to post a vendor role via api. After creating vendor and approving, I still cannot log in using dev:vendor page for the newly created vendors. I however can log in as both admin or vendor via admin page.

Screenshot 2024-06-11 at 7 52 01 PM
Imoj-NGX commented 5 months ago

Never-mind, must run both admin and vendor simultaneously and don't forget to set your admin cors in env to 7002.

bscw21027 commented 2 months ago

Hi Imoj-NGX,

I'm running through the exact same issue, and can't register or login on the vendor panel after running yarn dev:vendor.

I'm running both admin and vendor simultaneously.

This is my .env file.

JWT_SECRET=something
COOKIE_SECRET=something

DATABASE_TYPE="postgres"
REDIS_URL='redis://localhost:6379'
STORE_CORS='http://localhost:3000,http://localhost:7001'
ADMIN_CORS='http://localhost:7001,http://localhost:7002'
MEDUSA_FF_SALES_CHANNELS='false'

removed database url for obvious reasons. Can you help me to navigate this.