ShopHandle
●utils · /index·type
A shop identifier as stored on the shops collection — slug in dev, full hostname in prod.
Definition
type ShopHandle = string & { [ShopHandleBrand]: true };string & { [ShopHandleBrand]: true }
Related
ParsedHost AppName BuildEnv DevTld Hostname appFromHost isDevelopment isDevHost
shopFromHost
Extract the shop identifier from an HTTP host header. Dev TLDs (.localhost / .test): myshop.storefront.localhost:443 → myshop demo.nordcom.store.storefront.loca
stripPort
Remove the port suffix from a host string. IPv6safe. myshop.storefront.localhost:443 → myshop.storefront.localhost [::1]:8080 → ::1 127.0.0.1 → 127.0.0.1