-
Notifications
You must be signed in to change notification settings - Fork 1
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 #36 from TrustlessComputer/fix/metadata-eternal-ai
test
- Loading branch information
Showing
2 changed files
with
78 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,63 @@ | ||
'use client'; | ||
|
||
import EternalAi from '@/modules/eternal-ai'; | ||
import type { Metadata } from 'next'; | ||
|
||
export default function EternalAiPage() { | ||
return ( | ||
<EternalAi /> | ||
); | ||
return <EternalAi />; | ||
} | ||
|
||
// ------------------------------------------------ | ||
// Override Metadata | ||
// ------------------------------------------------ | ||
|
||
const APP_NAME = 'Eternal AI'; | ||
const APP_DEFAULT_TITLE = 'Eternal AI'; | ||
const APP_TITLE_TEMPLATE = 'Eternal AI'; | ||
const APP_DESCRIPTION = 'Decentralized AI on Bitcoin.'; | ||
// const APP_THUMBNAIL = `${CDN_URL_ICONS}/metadata.jpg`; | ||
|
||
// ==> Export is required if override | ||
const metaExternalAI: Metadata = { | ||
metadataBase: new URL(`${process.env.NEXT_PUBLIC_DOMAIN_URL}`), | ||
applicationName: APP_NAME, | ||
title: { | ||
default: APP_DEFAULT_TITLE, | ||
template: APP_TITLE_TEMPLATE, | ||
}, | ||
description: APP_DESCRIPTION, | ||
// manifest: "/manifest.json",// using for PWA | ||
appleWebApp: { | ||
capable: true, | ||
statusBarStyle: 'default', | ||
title: APP_DEFAULT_TITLE, | ||
}, | ||
formatDetection: { | ||
telephone: false, | ||
}, | ||
openGraph: { | ||
type: 'website', | ||
siteName: APP_NAME, | ||
title: { | ||
default: APP_DEFAULT_TITLE, | ||
template: APP_TITLE_TEMPLATE, | ||
}, | ||
description: APP_DESCRIPTION, | ||
images: [ | ||
{ | ||
url: 'https://cdn.newbitcoincity.com/nbc/icons/bvm-icons/metadata_eternal_ai.png', | ||
width: 1200, | ||
height: 630, | ||
alt: APP_NAME, | ||
}, | ||
], | ||
}, | ||
twitter: { | ||
card: 'summary', | ||
title: { | ||
default: APP_DEFAULT_TITLE, | ||
template: APP_TITLE_TEMPLATE, | ||
}, | ||
description: APP_DESCRIPTION, | ||
}, | ||
}; | ||
|
||
export { metaExternalAI }; |
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