Channels? (vendure multi-tenant)
gnimmelf opened this issue · 2 comments
gnimmelf commented
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
michaelbromley commented
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
gnimmelf commented
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: