MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / cleanLinenHost

Function cleanLinenHost

apps/web/utilities/middlewareHelper.ts:39–40  ·  view source on GitHub ↗
(hostname: string)

Source from the content-addressed store, hash-verified

37}
38
39const cleanLinenHost = (hostname: string) =>
40 hostname.indexOf('linen.dev') > -1 ? 'www.linen.dev' : hostname;
41
42export function rewrite({
43 hostname,

Callers 1

rewriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected