mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-03 23:16:49 +00:00
feat: update deps
This commit is contained in:
36
package.json
36
package.json
@@ -36,38 +36,36 @@
|
||||
"got": "^12.0.3",
|
||||
"isomorphic-unfetch": "^3.1.0",
|
||||
"lqip-modern": "^1.2.0",
|
||||
"next": "^12.2.3",
|
||||
"next": "^12.3.1",
|
||||
"next-api-og-image": "^2.2.1",
|
||||
"node-fetch": "^2.6.1",
|
||||
"notion-client": "^6.12.6",
|
||||
"notion-types": "^6.12.6",
|
||||
"notion-utils": "^6.12.6",
|
||||
"notion-client": "^6.13.11",
|
||||
"notion-types": "^6.13.4",
|
||||
"notion-utils": "^6.13.4",
|
||||
"p-map": "^5.3.0",
|
||||
"p-memoize": "^6.0.1",
|
||||
"posthog-js": "^1.20.2",
|
||||
"react": "^17.0.2",
|
||||
"react": "^18.2.0",
|
||||
"react-body-classname": "^1.3.1",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-notion-x": "^6.12.7",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-notion-x": "^6.15.3",
|
||||
"react-tweet-embed": "^2.0.0",
|
||||
"react-use": "^17.3.2",
|
||||
"rss": "^1.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/bundle-analyzer": "^12.1.0",
|
||||
"@types/node": "^17.0.23",
|
||||
"@types/node-fetch": "^3.0.3",
|
||||
"@types/react": "^17.0.31",
|
||||
"@typescript-eslint/eslint-plugin": "^5.15.0",
|
||||
"@typescript-eslint/parser": "^5.15.0",
|
||||
"@next/bundle-analyzer": "^12.3.1",
|
||||
"@types/node": "^18.8.5",
|
||||
"@types/react": "^18.0.21",
|
||||
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
||||
"@typescript-eslint/parser": "^5.40.0",
|
||||
"cross-env": "^7.0.2",
|
||||
"eslint": "^8.11.0",
|
||||
"eslint": "^8.25.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-react": "^7.29.4",
|
||||
"eslint-plugin-react-hooks": "^4.3.0",
|
||||
"eslint-plugin-react": "^7.31.10",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.4.1",
|
||||
"typescript": "^4.4.4"
|
||||
"prettier": "^2.7.1",
|
||||
"typescript": "^4.8.4"
|
||||
},
|
||||
"resolutions": {
|
||||
"next-api-og-image/chrome-aws-lambda": "6.0.0",
|
||||
|
||||
@@ -6,7 +6,9 @@ import { resolveNotionPage } from 'lib/resolve-notion-page'
|
||||
import { PageProps, Params } from 'lib/types'
|
||||
import { NotionPage } from 'components'
|
||||
|
||||
export const getStaticProps: GetStaticProps<PageProps, Params> = async (context) => {
|
||||
export const getStaticProps: GetStaticProps<PageProps, Params> = async (
|
||||
context
|
||||
) => {
|
||||
const rawPageId = context.params.pageId as string
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user