Skip to content

Commit 2d217b1

Browse files
waleedlatifwaleedlatif
authored andcommitted
remove video assets from docs
1 parent 5c96005 commit 2d217b1

27 files changed

+29
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="apps/sim/public/static/sim.png" alt="Sim Studio Logo" width="500"/>
2+
<img src="https://nwkhgj772h6t23m2.public.blob.vercel-storage.com/static/sim.png" alt="Sim Studio Logo" width="500"/>
33
</p>
44

55
<p align="center">
@@ -15,7 +15,7 @@
1515
</p>
1616

1717
<p align="center">
18-
<img src="apps/sim/public/static/demo.gif" alt="Sim Studio Demo" width="800"/>
18+
<img src="https://nwkhgj772h6t23m2.public.blob.vercel-storage.com/static/demo.gif" alt="Sim Studio Demo" width="800"/>
1919
</p>
2020

2121
## Getting Started

apps/docs/lib/utils.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,23 @@ export function cn(...inputs: ClassValue[]) {
99
}
1010

1111
/**
12-
* Get the full URL for a video asset stored in Vercel Blob
12+
* Get the full URL for an asset stored in Vercel Blob or local fallback
13+
* - If CDN is configured (NEXT_PUBLIC_BLOB_BASE_URL), uses CDN URL
14+
* - Otherwise falls back to local static assets served from root path
1315
*/
14-
export function getVideoUrl(filename: string) {
15-
const baseUrl = process.env.NEXT_PUBLIC_BLOB_BASE_URL
16-
if (!baseUrl) {
17-
console.warn('NEXT_PUBLIC_BLOB_BASE_URL not configured, falling back to local path')
18-
return `/${filename}`
16+
export function getAssetUrl(filename: string) {
17+
const cdnBaseUrl = process.env.NEXT_PUBLIC_BLOB_BASE_URL
18+
if (cdnBaseUrl) {
19+
return `${cdnBaseUrl}/${filename}`
1920
}
20-
return `${baseUrl}/${filename}`
21+
return `/${filename}`
22+
}
23+
24+
/**
25+
* Get the full URL for a video asset stored in Vercel Blob or local fallback
26+
* - If CDN is configured (NEXT_PUBLIC_BLOB_BASE_URL), uses CDN URL
27+
* - Otherwise falls back to local static assets served from root path
28+
*/
29+
export function getVideoUrl(filename: string) {
30+
return getAssetUrl(filename)
2131
}
-3.07 MB
Binary file not shown.
-12.8 MB
Binary file not shown.

apps/docs/public/chat-input.mp4

-9.36 MB
Binary file not shown.
-3.64 MB
Binary file not shown.
-5.05 MB
Binary file not shown.

apps/docs/public/connections.mp4

-3.92 MB
Binary file not shown.
-2.38 MB
Binary file not shown.

apps/docs/public/input-format.mp4

-2.71 MB
Binary file not shown.

0 commit comments

Comments
 (0)