From e98e79f328d3dbd977a85afa197058965fb3d304 Mon Sep 17 00:00:00 2001 From: tokkiyaa Date: Thu, 23 May 2024 12:14:31 +0900 Subject: [PATCH] docs: add missing / (#66105) Co-authored-by: Sam Ko --- .../06-optimizing/02-videos.mdx | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/docs/02-app/01-building-your-application/06-optimizing/02-videos.mdx b/docs/02-app/01-building-your-application/06-optimizing/02-videos.mdx index 3d428dc495..d7ff445aa2 100644 --- a/docs/02-app/01-building-your-application/06-optimizing/02-videos.mdx +++ b/docs/02-app/01-building-your-application/06-optimizing/02-videos.mdx @@ -216,25 +216,21 @@ If you have subtitles for your video, you can easily add them using the ` ```jsx filename="app/page.jsx" async function VideoComponent({ fileName }) { - const {blobs} = await list({ + const { blobs } = await list({ prefix: fileName, - limit: 2 - }); - const { url } = blobs[0]; - const { url: captionsUrl } = blobs[1]; + limit: 2, + }) + const { url } = blobs[0] + const { url: captionsUrl } = blobs[1] return ( - ); -}; + ) +} ``` By following this approach, you can effectively self-host and integrate videos into your Next.js applications.