Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxknivets committed Oct 3, 2024
1 parent 7cfbf1e commit e5c5559
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/metadata/getPageOgType.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Route } from 'nextjs-routes';

type OGPageType = 'Homepage' | 'Root page' | 'Regular page';
type OGPageType = 'Homepage' | 'Root page' | 'Regular page' | 'ARK API';

const OG_TYPE_DICT: Record<Route['pathname'], OGPageType> = {
'/': 'Homepage',
Expand Down Expand Up @@ -58,6 +58,7 @@ const OG_TYPE_DICT: Record<Route['pathname'], OGPageType> = {
'/auth/auth0': 'Regular page',
'/auth/unverified-email': 'Regular page',
'/api/arweave-id': 'Regular page',
'/api/ark': 'ARK API',
};

export default function getPageOgType(pathname: Route['pathname']) {
Expand Down
1 change: 1 addition & 0 deletions lib/metadata/templates/description.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const DEFAULT_TEMPLATE = 'Blockscout is the #1 open-source blockchain explorer a
// FIXME all page descriptions will be updated later
const TEMPLATE_MAP: Record<Route['pathname'], string> = {
'/': DEFAULT_TEMPLATE,
'/api/ark': DEFAULT_TEMPLATE,
'/txs': DEFAULT_TEMPLATE,
'/txs/kettle/[hash]': DEFAULT_TEMPLATE,
'/tx/[hash]': 'View transaction %hash% on %network_title%',
Expand Down
1 change: 1 addition & 0 deletions lib/metadata/templates/title.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Route } from 'nextjs-routes';

const TEMPLATE_MAP: Record<Route['pathname'], string> = {
'/api/ark': 'ARK API',
'/': '%network_name% blockchain explorer - View %network_name% stats',
'/txs': '%network_name% transactions - %network_name% explorer',
'/txs/kettle/[hash]': '%network_name% kettle %hash% transactions',
Expand Down
1 change: 1 addition & 0 deletions lib/mixpanel/getPageType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Route } from 'nextjs-routes';

export const PAGE_TYPE_DICT: Record<Route['pathname'], string> = {
'/': 'Homepage',
'/api/ark': 'ARK API',
'/txs': 'Transactions',
'/txs/kettle/[hash]': 'Kettle transactions',
'/tx/[hash]': 'Transaction details',
Expand Down

0 comments on commit e5c5559

Please sign in to comment.