-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from berachain/ipfs/bend-updates-rebased
refactor(bend): removed /market?address in favor of generateStaticParams
- Loading branch information
Showing
8 changed files
with
30 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"sites": [ | ||
{ | ||
"slug": "v2-bend", | ||
"distDir": "./out" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
import React from "react"; | ||
import { notFound } from "next/navigation"; | ||
import { isIPFS } from "@bera/config"; | ||
import { honeyTokenAddress } from "@bera/config"; | ||
import { type Address } from "viem"; | ||
|
||
import IndividualMarketAnalytics from "./individual-market-analytics"; | ||
|
||
export default function Page({ params }: { params: { address: Address } }) { | ||
if (isIPFS) notFound(); | ||
return <IndividualMarketAnalytics address={params.address} />; | ||
} | ||
|
||
export async function generateStaticParams() { | ||
if (isIPFS) { | ||
const addresses = ["0x"]; | ||
return addresses.map((address) => ({ | ||
address, | ||
})); | ||
} | ||
return []; | ||
export function generateStaticParams() { | ||
const addresses = [honeyTokenAddress]; | ||
return addresses.map((address) => ({ | ||
address, | ||
})); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters