diff --git a/src/components/DocumentView/Embed.tsx b/src/components/DocumentView/Embed.tsx index c99fbab53..ceac886de 100644 --- a/src/components/DocumentView/Embed.tsx +++ b/src/components/DocumentView/Embed.tsx @@ -1,4 +1,6 @@ import { DocumentBlockEmbed } from '@gitbook/api'; +import Script from 'next/script'; + import { Card } from '@/components/primitives'; import { api } from '@/lib/api'; @@ -15,11 +17,15 @@ export async function Embed(props: BlockProps) { return ( {embed.type === 'rich' ? ( -
+ <> +
+ {/* We load the iframely script to resize the embed iframes dynamically */} +