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 969d363d1fb6b..6d7b9e670d213 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 @@ -104,7 +104,7 @@ To embed videos from external platforms, you can use Next.js to fetch the video The first step is to create a [Server Component](https://nextjs.org/docs/app/building-your-application/rendering/server-components) that generates the appropriate iframe for embedding the video. This component will fetch the source URL for the video and render the iframe. ```jsx filename="app/ui/video-component.jsx" -export const async function VideoComponent (){ +export default async function VideoComponent() { const src = await getVideoSrc() return