-
Notifications
You must be signed in to change notification settings - Fork 0
/
_app.tsx
31 lines (28 loc) · 876 Bytes
/
_app.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import type { AppProps } from "next/app";
import { ChainId, ThirdwebProvider } from "@thirdweb-dev/react";
import "../styles/globals.css";
import Head from "next/head";
import Header from "../components/_header";
// This is the chainId your dApp will work on.
const activeChainId = ChainId.Mainnet;
const customRPC = process.env.ALCHEMY_RPC || "";
function MyApp({ Component, pageProps }: AppProps) {
return (
<ThirdwebProvider
// 5 For Goerli,
chainRpc={{
1: customRPC,
}}
desiredChainId={activeChainId}
>
<Head>
<title>Offshore DAO </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Offshore DAO minting page" />
</Head>
<Header />
<Component {...pageProps} />
</ThirdwebProvider>
);
}
export default MyApp;