MCPcopy Create free account
hub / github.com/dailydotdev/apps / appHosts

Function appHosts

packages/shared/src/components/shell/readingStore.ts:88–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86// The app's own pages are linked as daily.dev and app.daily.dev whatever
87// origin serves them, so both count as inside along with the page's own.
88const appHosts = (): string[] =>
89 [
90 'daily.dev',
91 'app.daily.dev',
92 globalThis.location?.host,
93 new URL(getAbsoluteWebappUrl()).host,
94 ].filter(Boolean) as string[];
95
96// A web link that leaves the app: not one of its own pages, not a sign-in
97// or share hand-off that belongs to the destination.

Callers 1

isOutsideLinkFunction · 0.85

Calls 1

getAbsoluteWebappUrlFunction · 0.90

Tested by

no test coverage detected