diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 99e949e..55e3486 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -70,16 +70,16 @@ jobs: static_site_generator: next # Step 5: Restore build cache - # - name: Restore cache - # uses: actions/cache@v3 - # with: - # path: | - # .next/cache - # # Generate a new cache whenever packages or source files change. - # key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} - # # If source files changed but packages didn't, rebuild from a prior cache. - # restore-keys: | - # ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + .next/cache + # Generate a new cache whenever packages or source files change. + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + # If source files changed but packages didn't, rebuild from a prior cache. + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- # Step 6: Conditionally set NEXT_PUBLIC_BASE_PATH based on the repository - name: Set base path for GitHub Pages diff --git a/next.config.js b/next.config.js index 30b372c..0af1f03 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,5 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: 'export', reactStrictMode: false, swcMinify: true, devIndicators: { diff --git a/pages/_document.js b/pages/_document.js index cd953ee..da64c7a 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -49,6 +49,20 @@ class MyDocument extends Document { name="viewport" content="width=device-width, initial-scale=1.0" /> + +
diff --git a/pages/transactions/[txHash].tsx b/pages/transactions/[txHash].tsx index d2b3e25..04ad3a1 100644 --- a/pages/transactions/[txHash].tsx +++ b/pages/transactions/[txHash].tsx @@ -4,18 +4,16 @@ import dynamic from 'next/dynamic'; import Head from 'next/head'; // Internal Components imports -// import { Spinner } from '../../blocks'; -import Layout from '../../layout'; -import TransactionDetailsView from '../../sections/Transactions/txHash'; +import { Spinner } from '../../blocks'; -// const Layout = dynamic(() => import('../../layout')); +const Layout = dynamic(() => import('../../layout')); -// const TransactionDetailsView = dynamic( -// () => import('../../sections/Transactions/txHash'), -// { -// loading: () => , -// } -// ); +const TransactionDetailsView = dynamic( + () => import('../../sections/Transactions/txHash'), + { + loading: () => , + } +); const TransactionDetailsPage = () => { return (