mirror of
https://github.com/yashgo0018/maci-wrapper.git
synced 2026-04-12 03:00:25 -04:00
62 lines
1.5 KiB
TypeScript
62 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 "~~/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`;
|
|
|
|
const title = "Scaffold-ETH 2 App";
|
|
const titleTemplate = "%s | Scaffold-ETH 2";
|
|
const description = "Built with 🏗 Scaffold-ETH 2";
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(baseUrl),
|
|
title: {
|
|
default: title,
|
|
template: titleTemplate,
|
|
},
|
|
description,
|
|
openGraph: {
|
|
title: {
|
|
default: title,
|
|
template: titleTemplate,
|
|
},
|
|
description,
|
|
images: [
|
|
{
|
|
url: imageUrl,
|
|
},
|
|
],
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
images: [imageUrl],
|
|
title: {
|
|
default: title,
|
|
template: titleTemplate,
|
|
},
|
|
description,
|
|
},
|
|
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;
|