diff --git a/next.config.js b/next.config.js index a2211e960d..d4fb7c621a 100644 --- a/next.config.js +++ b/next.config.js @@ -128,20 +128,6 @@ const SECURITY_HEADERS = [ const nextConfig = removeImports({ experimental: { esmExternals: true, - optimizePackageImports: [ - 'juice-sdk-core', - 'juice-sdk-react', - 'ethers', - 'ethers/lib/utils', - '@ethersproject/constants', - '@ethersproject/bignumber', - '@ethersproject', - 'viem', - 'viem/chains', - 'wagmi', - '@wagmi/core', - '@heroicons/react' - ], }, staticPageGenerationTimeout: 90, webpack: config => { diff --git a/src/utils/server/pages/props.ts b/src/utils/server/pages/props.ts index 2091f122f1..8807575065 100644 --- a/src/utils/server/pages/props.ts +++ b/src/utils/server/pages/props.ts @@ -7,7 +7,7 @@ import { getProjectMetadata } from '../metadata' export interface ProjectPageProps { metadata?: ProjectMetadata projectId: number - chainName?: string + chainName?: string | null } export async function getProjectStaticProps( @@ -25,7 +25,7 @@ export async function getProjectStaticProps( props: { metadata, projectId, - chainName, + chainName: chainName ?? null, }, } // eslint-disable-next-line @typescript-eslint/no-explicit-any