stripPort
●utils · /index·function
Remove the port suffix from a host string. IPv6-safe.
my-shop.storefront.localhost:443 → my-shop.storefront.localhost
[::1]:8080 → ::1
127.0.0.1 → 127.0.0.1
Signature
function stripPort(host: string): string;Parameters
| Name | Type | Description |
|---|---|---|
host | string |
Related
ParsedHost AppName BuildEnv DevTld Hostname ShopHandle appFromHost isDevelopment