Created
August 21, 2022 15:28
-
-
Save officialrajdeepsingh/2af3c7bba32bba14b7b14d38b062e102 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import '../styles/globals.css' | |
| import Head from "next/head"; | |
| import Header from "../components/Header"; | |
| import Footer from "../components/Footer"; | |
| import { DefaultSeo } from 'next-seo'; | |
| import SEO from '../next-seo.config'; | |
| import { SessionProvider } from "next-auth/react" | |
| // for error handing | |
| import ErrorBoundary from '../components/ErrorBoundary'; | |
| function App({ Component, pageProps: { session, ...pageProps } }) { | |
| return ( | |
| <ErrorBoundary> | |
| {/* next-auth Session Provider */} | |
| <SessionProvider session={session}> | |
| <Head> | |
| <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossOrigin="anonymous" /> | |
| </Head> | |
| {/* default seo config for next-seo */} | |
| <DefaultSeo {...SEO} /> | |
| <Header /> | |
| <Component {...pageProps} /> | |
| <Footer /> | |
| </SessionProvider> | |
| </ErrorBoundary> | |
| ) | |
| } | |
| export default App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment