mirror of
https://github.com/luxfhe/example-poker.git
synced 2026-10-30 18:13:22 +00:00
59 lines
1.5 KiB
TypeScript
59 lines
1.5 KiB
TypeScript
import "@rainbow-me/rainbowkit/styles.css";
|
|
import { Metadata } from "next";
|
|
import { ScaffoldEthAppWithProviders } from "~~/components/ScaffoldEthAppWithProviders";
|
|
import { ThemeProvider } from "~~/components/ThemeProvider";
|
|
import { APP_NAME } from "~~/config/main";
|
|
import "~~/styles/globals.css";
|
|
|
|
const baseUrl = process.env.VERCEL_URL
|
|
? `https://${process.env.VERCEL_URL}`
|
|
: `http://localhost:${process.env.PORT || 3000}`;
|
|
const imageUrl = `${baseUrl}/thumbnail.jpg`;
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(baseUrl),
|
|
title: {
|
|
default: APP_NAME,
|
|
template: `%s | ${APP_NAME}`,
|
|
},
|
|
description: `Built with ${APP_NAME}`,
|
|
openGraph: {
|
|
title: {
|
|
default: APP_NAME,
|
|
template: `%s | ${APP_NAME}`,
|
|
},
|
|
description: `Built with ${APP_NAME}`,
|
|
images: [
|
|
{
|
|
url: imageUrl,
|
|
},
|
|
],
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
images: [imageUrl],
|
|
title: {
|
|
default: APP_NAME,
|
|
template: `%s | ${APP_NAME}`,
|
|
},
|
|
description: `Built with ${APP_NAME}`,
|
|
},
|
|
icons: {
|
|
icon: [{ url: "/favicon.png", sizes: "32x32", type: "image/png" }],
|
|
},
|
|
};
|
|
|
|
const ScaffoldEthApp = ({ children }: { children: React.ReactNode }) => {
|
|
return (
|
|
<html suppressHydrationWarning>
|
|
<body>
|
|
<ThemeProvider enableSystem>
|
|
<ScaffoldEthAppWithProviders>{children}</ScaffoldEthAppWithProviders>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
};
|
|
|
|
export default ScaffoldEthApp;
|