Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit 3eca007

Browse files
committedNov 16, 2020
pass seo config as default
1 parent adf5e7d commit 3eca007

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ Tailwind and Emotion are available for styling using utility classes and css-in-
2626

2727
Testing is facilitated through React Testing Library and Jest.
2828

29-
`next-seo` and `next-sitemap` are doing their jobs very well. Be sure to update `/next-sitemap.js` and `/next-seo.js` with your information!
29+
`next-seo` and `next-sitemap` are doing their jobs very well. Be sure to update `/next-sitemap.js` and `/next-seo.json` with your information!

‎next-seo.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"title": "Next.js and MDX fueled",
33
"titleTemplate": "%s | Joel",
44
"description": "THis is my Next.js TypeScript Tailwind Site",
5+
"favicon": "/favicon.ico",
56
"additionalMetaTags": [
67
{"property": "author", "content": "joel hooks"},
78
{

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"mdx-prism": "^0.3.1",
2222
"next": "10.0.1",
2323
"next-mdx-enhanced": "^4.0.0",
24-
"next-seo": "^4.15.1",
24+
"next-seo": "^4.17.0",
2525
"next-sitemap": "^1.2.26",
2626
"prettier": "^2.1.2",
2727
"react": "17.0.1",
@@ -32,8 +32,8 @@
3232
"remark-slug": "^6.0.0"
3333
},
3434
"devDependencies": {
35-
"@emotion/babel-preset-css-prop": "^10.2.1",
3635
"@babel/plugin-transform-react-jsx": "^7.12.5",
36+
"@emotion/babel-preset-css-prop": "^10.2.1",
3737
"@tailwindcss/typography": "^0.2.0",
3838
"@testing-library/jest-dom": "^5.11.5",
3939
"@testing-library/react": "^11.1.1",

‎src/pages/_app.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
import React from 'react'
12
import {AppProps} from 'next/app'
23
import '../styles/globals.css'
4+
import {DefaultSeo} from 'next-seo'
5+
import SEO from '../../next-seo.json'
36

47
function MyApp({Component, pageProps}: AppProps) {
5-
return <Component {...pageProps} />
8+
return (
9+
<>
10+
<DefaultSeo {...SEO} />
11+
<Component {...pageProps} />
12+
</>
13+
)
614
}
715

816
export default MyApp

‎yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -6295,10 +6295,10 @@ next-mdx-enhanced@^4.0.0:
62956295
prebuild-webpack-plugin "1.1.1"
62966296
stringify-object "^3.3.0"
62976297

6298-
next-seo@^4.15.1:
6299-
version "4.15.1"
6300-
resolved "https://registry.yarnpkg.com/next-seo/-/next-seo-4.15.1.tgz#d1cb51615739690040110b581bfb51d979307a1f"
6301-
integrity sha512-jRYUOKbSFirwNRTaYFThu0BLBA1oWJIUq076QQ8uXBP6GG6Eh2/aPcXDoeOt33S1qghTJ60MwW1BkCbN889MIg==
6298+
next-seo@^4.17.0:
6299+
version "4.17.0"
6300+
resolved "https://registry.yarnpkg.com/next-seo/-/next-seo-4.17.0.tgz#fb3dbe0ed7414aa9d83872ef5d8510980a6dae7e"
6301+
integrity sha512-/hnb3oq7bhi8s7bup7+Lm6VzzgRucj+JrWtp+dJiYs/04H0N/NhmE9MpepixQ16fFj6G/39JLYxhzsO/QZG/Kw==
63026302

63036303
next-sitemap@^1.2.26:
63046304
version "1.2.26"

0 commit comments

Comments
 (0)
This repository has been archived.