From f23f57f692943e112798b8f5ac6572b653370171 Mon Sep 17 00:00:00 2001 From: Bernardo Belchior Date: Fri, 16 Feb 2024 19:26:06 +0100 Subject: [PATCH] Fix extra `const` in video docs (#62155) Co-authored-by: JJ Kasper --- .../01-building-your-application/06-optimizing/02-videos.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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