rsnext/examples/with-next-seo/pages/_app.js

19 lines
530 B
JavaScript
Raw Normal View History

/**
* Using a custom _app.js with next-seo you can set default SEO
* that will apply to every page. Full info on how the default works
* can be found here: https://github.com/garmeeh/next-seo#default-seo-configuration
*/
import { DefaultSeo } from 'next-seo'
import SEO from '../next-seo.config'
export default function MyApp({ Component, pageProps }) {
return (
/* Here we call NextSeo and pass our default configuration to it */
<>
<DefaultSeo {...SEO} />
<Component {...pageProps} />
</>
)
}