saleor / storefront

Saleor Storefront built with React 18, Next.js 14, App Router, TypeScript, GraphQL, and Tailwind CSS.
https://storefront.saleor.io
BSD 3-Clause "New" or "Revised" License
1.01k stars 585 forks source link

Add env variable for default channel #1060

Open timuric opened 9 months ago

timuric commented 9 months ago

Since storefronts can be used with different datasets, the default channel slug should be configurable via .env

bertoldoklinger commented 8 months ago

Hi there! this will affect the url path? whats your point of view on this? we could change the path from '/default-channel' to '/' via .env?

timuric commented 8 months ago

Hi there! this will affect the url path? whats your point of view on this? we could change the path from '/default-channel' to '/' via .env?

I think channel information should not belong in url in most use cases, instead it should be mapped to a locale