-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support local embeds #2024
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so sick, we should document this and add to the changelog cc @kgowru
export const Embed: FC<ComponentProps<"embed">> = ({ src, ...rest }) => { | ||
const files = useAtomValue(FILES_ATOM); | ||
|
||
const fernEmbedSrc = useMemo((): DocsV1Read.File_ | undefined => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably good to make this a utility function and share it across the codebase. i imagine we'll do this more.
strong: Strong, | ||
}; | ||
|
||
const ALIASED_HTML_COMPONENTS = { | ||
Image, | ||
Embed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add one for video since you're here?
+1 to both, will scope to another PR |
📦 Next.js Bundle Analysis for fern-platform-monorepoThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Playwright test resultsDetails 101 tests across 9 suites Flaky testschromium › skew-protection/index.test.ts › should contain ?dpl= or x-deployment-id header on all scripts and prefetch requests Skipped testschromium › posthog.spec.ts › Posthog loads successfully |
This PR enables to reference locally-hosted files
Before:
After: