diff --git a/src/components/templates/AssetDetails.tsx b/src/components/templates/AssetDetails.tsx index eeb6fd6e8..f3deda1ab 100644 --- a/src/components/templates/AssetDetails.tsx +++ b/src/components/templates/AssetDetails.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect, ReactElement } from 'react' import { Router } from '@reach/router' import AssetContent from '../../components/organisms/AssetContent' import Layout from '../../components/Layout' -import { MetadataMarket, ServiceMetadataMarket } from '../../@types/Metadata' +import { MetadataMarket } from '../../@types/Metadata' import { MetadataStore, Logger, DDO } from '@oceanprotocol/lib' import Alert from '../../components/atoms/Alert' import Loader from '../../components/atoms/Loader' @@ -61,7 +61,7 @@ export default function PageTemplateAssetDetails({ ) : ( - + ) diff --git a/src/pages/asset/index.tsx b/src/pages/asset/index.tsx index 58b98d51d..9594f5d2c 100644 --- a/src/pages/asset/index.tsx +++ b/src/pages/asset/index.tsx @@ -4,5 +4,6 @@ import PageTemplateAssetDetails from '../../components/templates/AssetDetails' export default function PageGatsbyAssetDetails(props: PageProps): ReactElement { const did = props.location.pathname.split('/')[2] + return } diff --git a/vercel.json b/vercel.json index 20041cad5..37613bcf7 100644 --- a/vercel.json +++ b/vercel.json @@ -1,4 +1 @@ -{ - "cleanUrls": true, - "trailingSlash": false -} +{ "rewrites": [{ "source": "/asset/:did", "destination": "/asset/" }] }