File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { ReactNode , useState } from "react"
2
2
import type { GetStaticProps , InferGetStaticPropsType } from "next"
3
+ import dynamic from "next/dynamic"
3
4
import { useRouter } from "next/router"
4
5
import { useTranslation } from "next-i18next"
5
6
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
@@ -25,7 +26,6 @@ import ActionCard from "@/components/ActionCard"
25
26
import ButtonLink from "@/components/Buttons/ButtonLink"
26
27
import CalloutBanner from "@/components/CalloutBanner"
27
28
import Codeblock from "@/components/Codeblock"
28
- import CodeModal from "@/components/CodeModal"
29
29
import CommunityEvents from "@/components/CommunityEvents"
30
30
import HomeHero from "@/components/Hero/HomeHero"
31
31
import { Image } from "@/components/Image"
@@ -333,6 +333,11 @@ const HomePage = ({
333
333
334
334
const cardBoxShadow = useToken ( "colors" , "cardBoxShadow" )
335
335
336
+ // Lazy-load CodeModal component
337
+ const CodeModal = dynamic ( ( ) => import ( "@/components/CodeModal" ) , {
338
+ ssr : false ,
339
+ } )
340
+
336
341
return (
337
342
< Flex
338
343
as = { MainArticle }
You can’t perform that action at this time.
0 commit comments