File tree Expand file tree Collapse file tree 5 files changed +5
-10
lines changed
Expand file tree Collapse file tree 5 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ export async function generateMetadata({
5757
5858 const image = [ '/docs-og' , ...slug , 'image.png' ] . join ( '/' ) ;
5959 return {
60+ metadataBase : new URL ( "https://meshjs.dev" ) ,
6061 title : page . data . title ,
6162 description : page . data . description ,
6263 openGraph : {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { notFound } from 'next/navigation';
44
55export async function GET (
66 _req : Request ,
7- { params } : RouteContext < '/docs-og/[... slug]' > ,
7+ { params } : { params : Promise < { slug : string [ ] } > }
88) {
99 const { slug } = await params ;
1010 const page = source . getPage ( slug . slice ( 0 , - 1 ) ) ;
Original file line number Diff line number Diff line change 66 WrenchIcon ,
77} from "@heroicons/react/24/solid" ;
88
9- import { MenuItem } from "~/types/menu-item" ;
10-
119export const metaOverview = {
1210 title : "Data Overview" ,
1311 desc : "Learn about the basics, and how Mesh handles Cardano data" ,
@@ -46,7 +44,7 @@ export const metaDataUtils = {
4644 icon : WrenchIcon ,
4745} ;
4846
49- export const linksData : MenuItem [ ] = [
47+ export const linksData = [
5048 metaOverview ,
5149 metaDataMesh ,
5250 metaDataJson ,
Original file line number Diff line number Diff line change 55 RocketLaunchIcon ,
66} from "@heroicons/react/24/solid" ;
77
8- import { MenuItem } from "~/types/menu-item" ;
9-
108export const metaReactGettingstarted = {
119 title : "Getting Started with React" ,
1210 desc : "Frontend components for wallet connections, and useful React hooks to getting wallet states" ,
@@ -26,7 +24,7 @@ export const metaReactWallethooks = {
2624 icon : BoltIcon ,
2725} ;
2826
29- export const linksReact : MenuItem [ ] = [
27+ export const linksReact = [
3028 metaReactGettingstarted ,
3129 metaReactUicomponents ,
3230 metaReactWallethooks ,
Original file line number Diff line number Diff line change 44 RocketLaunchIcon ,
55} from "@heroicons/react/24/solid" ;
66
7- import { MenuItem } from "~/types/menu-item" ;
8-
97export const metaSvelteGettingstarted = {
108 title : "Getting Started with Svelte" ,
119 desc : "Svelte frontend components for wallet connections." ,
@@ -19,7 +17,7 @@ export const metaSvelteUicomponents = {
1917 icon : PaintBrushIcon ,
2018} ;
2119
22- export const linksSvelte : MenuItem [ ] = [
20+ export const linksSvelte = [
2321 metaSvelteGettingstarted ,
2422 metaSvelteUicomponents ,
2523] ;
You can’t perform that action at this time.
0 commit comments