Strip the port from a host string ("snap.example.com:3001" → "snap.example.com"). Use inside publicUrl / protectedResource resolvers to build scheme://host URLs without carrying the test-time port into production URLs. IPv6 brackets preserved.
host
"snap.example.com:3001"
"snap.example.com"
publicUrl
protectedResource
Strip the port from a
hoststring ("snap.example.com:3001"→"snap.example.com"). Use insidepublicUrl/protectedResourceresolvers to build scheme://host URLs without carrying the test-time port into production URLs. IPv6 brackets preserved.