From 62e90a2c0b731833ac4d47765f69e7a528402137 Mon Sep 17 00:00:00 2001 From: tonytc13579 Date: Tue, 2 Jan 2024 15:02:16 +0700 Subject: [PATCH] Fix: import dynamic when build ssr --- src/app/blockchains/page.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/blockchains/page.tsx b/src/app/blockchains/page.tsx index b674ef24f..14184b665 100644 --- a/src/app/blockchains/page.tsx +++ b/src/app/blockchains/page.tsx @@ -3,6 +3,7 @@ import { isProduction } from '@/config'; import MainLayout from '@/layouts/MainLayout'; import IframeTC from '@/modules/iframe-tc'; +import dynamic from 'next/dynamic'; const pathUrl = '/bvm-website-sats-iframe/computers'; const IframeURLExtend = @@ -16,6 +17,13 @@ const iframeDomain = isProduction ? 'https://bvm.network' : 'https://dev.bvm.network'; +const IframeTCDynamic = dynamic( + () => import('@/modules/iframe-tc').then((m) => m.default), + { + ssr: false, + }, +); + const TCPage = () => { return ( { bgColor: 'white', }} > - + ); };