File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
playground-web/src/app/reference Expand file tree Collapse file tree 2 files changed +13
-3
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 @@ -3,11 +3,11 @@ import { ScalarApiReference } from "./ScalarClient";
33
44export const metadata = createMetadata ( {
55 image : {
6- title : "API Reference" ,
6+ title : "thirdweb API Reference" ,
77 icon : "thirdweb" ,
88 } ,
99 title : "thirdweb API Reference" ,
10- description : "Complete REST API reference for all thirdweb services " ,
10+ description : "A Unified interface for Web3 development " ,
1111} ) ;
1212
1313export default async function ApiReferencePage ( ) {
@@ -19,3 +19,5 @@ export default async function ApiReferencePage() {
1919 </ div >
2020 ) ;
2121}
22+
23+ export const revalidate = 3600 ;
You can’t perform that action at this time.
0 commit comments