vendure-ecommerce/storefront-remix-starter

Channels? (vendure multi-tenant)

gnimmelf opened this issue · 2 comments

Hello & congrats,

this repo was a nice surprise to discover.

Looking though the code and docs, I cannot find any setting for channel.

Is there a way, per now, to configure using only one Vendure channel?

Cheers,
Flemming

Hi! So the way to specify a particular Channel is by appending a vendure-token query string or header to all your requests to the Shop API. i.e.

POST domain.com/shop-api?vendure-token=<my channel token>

More here: https://www.vendure.io/docs/storefront/shop-api-guide/#universal-parameters

Yup, was on it when I found app/graphqlWrapper.ts. And it was as simple as it could be, so thanks for swift feedback and easily extendable code:

https://github.com/gnimmelf/eike-storefront-remix-starter/commit/4c3e775a53fc1eab019fe27c8a93e0377387803b