MCPcopy Create free account
hub / github.com/code100x/cms / bunnyUrl

Function bunnyUrl

src/components/admin/ContentRenderer.tsx:8–20  ·  view source on GitHub ↗
(url?: string)

Source from the content-addressed store, hash-verified

6import { getAppxCourseId } from '@/utiles/appx';
7
8function bunnyUrl(url?: string) {
9 if (!url) return '';
10 return url
11 .replace('https://appxcontent.kaxa.in', 'https://appxcontent.b-cdn.net')
12 .replace(
13 'https://appx-transcoded-videos.livelearn.in',
14 'https://appx-transcoded-videos.b-cdn.net',
15 )
16 .replace(
17 'https://appx-recordings.livelearn.in',
18 'https://appx-recordings.b-cdn.net',
19 );
20}
21
22async function isUrlAccessible(url: string): Promise<boolean> {
23 try {

Callers 1

getMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected