Skip to content

Commit

Permalink
remove polygon gas
Browse files Browse the repository at this point in the history
  • Loading branch information
wslyvh committed Aug 5, 2024
1 parent 4598163 commit 43424a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
3 changes: 0 additions & 3 deletions src/pages/gas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ export default function Index(props: Props) {
<li>
<Link href="/gas/optimism">Optimism Gas Tracker</Link>
</li>
<li>
<Link href="/gas/polygon">Polygon Gas Tracker</Link>
</li>
<li>
<Link href="/gas/base">Base Gas Tracker</Link>
</li>
Expand Down
14 changes: 4 additions & 10 deletions src/pages/gas/[network].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ export default function Index(props: Props) {
<li>
<Link href="/gas/optimism">Optimism Gas Tracker</Link>
</li>
<li>
<Link href="/gas/polygon">Polygon Gas Tracker</Link>
</li>
<li>
<Link href="/gas/base">Base Gas Tracker</Link>
</li>
Expand Down Expand Up @@ -157,18 +154,15 @@ export default function Index(props: Props) {
export const getStaticPaths: GetStaticPaths = async () => {
return {
paths: [
{
params: { network: 'polygon' },
},
{
params: { network: 'optimism' },
},
{
params: { network: 'arbitrum' },
},
{
params: { network: 'base' },
},
{
params: { network: 'optimism' },
},
],
fallback: false,
}
Expand All @@ -179,7 +173,7 @@ export const getStaticProps: GetStaticProps<Props, Params> = async (context) =>
const service = new MarkdownContentService()
const categories = await service.GetCategories()

if (!network || !['polygon', 'optimism', 'base', 'arbitrum'].includes(network)) {
if (!network || !['arbitrum', 'base', 'mainnet', 'optimism'].includes(network)) {
return {
props: null,
notFound: true,
Expand Down

0 comments on commit 43424a7

Please sign in to comment.