File tree Expand file tree Collapse file tree 2 files changed +24
-14
lines changed
playground-web/src/app/reference Expand file tree Collapse file tree 2 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 1- import { ScalarApiReference } from "../../components/blocks/scalar-api/ScalarClient" ;
1+ import { ScalarApiReference } from "@/components/blocks/scalar-api/ScalarClient" ;
2+ import { createMetadata } from "@/lib/metadata" ;
23
34export default async function ReferencePage ( ) {
45 const responses = await fetch ( "https://api.thirdweb.com/openapi.json" ) ;
56 const spec = await responses . json ( ) ;
67 return < ScalarApiReference spec = { spec } /> ;
78}
9+
10+ export const metadata = createMetadata ( {
11+ title : "thirdwebAPI Reference" ,
12+ description : "A Unified interface for Web3 development" ,
13+ } ) ;
14+
15+ export const revalidate = 3600 ;
Original file line number Diff line number Diff line change @@ -2,20 +2,22 @@ import { createMetadata } from "@/components/Document";
22import { ScalarApiReference } from "./ScalarClient" ;
33
44export const metadata = createMetadata ( {
5- image : {
6- title : "API Reference" ,
7- icon : "thirdweb" ,
8- } ,
9- title : "thirdweb API Reference" ,
10- description : "Complete REST API reference for all thirdweb services " ,
5+ image : {
6+ title : "thirdweb API Reference" ,
7+ icon : "thirdweb" ,
8+ } ,
9+ title : "thirdweb API Reference" ,
10+ description : "A Unified interface for Web3 development " ,
1111} ) ;
1212
1313export default async function ApiReferencePage ( ) {
14- const responses = await fetch ( "https://api.thirdweb.com/openapi.json" ) ;
15- const spec = await responses . json ( ) ;
16- return (
17- < div className = "container max-sm:px-0" >
18- < ScalarApiReference spec = { spec } />
19- </ div >
20- ) ;
14+ const responses = await fetch ( "https://api.thirdweb.com/openapi.json" ) ;
15+ const spec = await responses . json ( ) ;
16+ return (
17+ < div className = "container max-sm:px-0" >
18+ < ScalarApiReference spec = { spec } />
19+ </ div >
20+ ) ;
2121}
22+
23+ export const revalidate = 3600 ;
You can’t perform that action at this time.
0 commit comments