Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytc13579 committed Jan 2, 2024
1 parent ab798f4 commit c975d01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_APP_ENV=develop
NEXT_PUBLIC_DOMAIN_URL=https://dev.bvm.network
NEXT_PUBLIC_APP_ENV=local
NEXT_PUBLIC_DOMAIN_URL=http://localhost:3000
NEXT_PUBLIC_CDN_URL=https://cdn.newbitcoincity.com
NEXT_PUBLIC_API_URL=
6 changes: 3 additions & 3 deletions src/app/blockchains/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use client';

import { DOMAIN_URL, isDevelop } from '@/config';
import { DOMAIN_URL, isDevelop, isLocal } from '@/config';
import MainLayout from '@/layouts/MainLayout';
import dynamic from 'next/dynamic';

const pathUrl = '/bvm-website-sats-iframe/computers';

const iframeDomain = isDevelop ? 'http://localhost:6009' : DOMAIN_URL;
const iframeL2ServicesDomain = isLocal ? 'http://localhost:6009' : DOMAIN_URL;

const IframeTCDynamic = dynamic(
() => import('@/modules/iframe-tc').then((m) => m.default),
Expand All @@ -24,7 +24,7 @@ const TCPage = () => {
bgColor: '#F3F1E8',
}}
>
<IframeTCDynamic iframeURL={`${iframeDomain}${pathUrl}`} />
<IframeTCDynamic iframeURL={`${iframeL2ServicesDomain}${pathUrl}`} />
</MainLayout>
);
};
Expand Down

0 comments on commit c975d01

Please sign in to comment.