MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / appendProtocol

Function appendProtocol

packages/utilities/src/url.ts:11–12  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

9}
10
11export const appendProtocol = (host: string) =>
12 `${isProd() ? 'https' : 'http'}://${host}`;
13
14// TODO: Should handle this on validation/save when creating an account
15export const addHttpsToUrl = (url: string) => {

Callers 13

linen.tsFile · 0.90
getCommunityUrlFunction · 0.90
inbound.tsFile · 0.90
outbound.tsFile · 0.90
inbound.tsFile · 0.90
linen.tsFile · 0.90
index.tsFile · 0.90
sendEmailNotificationFunction · 0.90
getHomeUrlFunction · 0.90
linen.tsFile · 0.90
redirectChannelToDomainFunction · 0.90
redirectThreadToDomainFunction · 0.90

Calls 1

isProdFunction · 0.70

Tested by

no test coverage detected