Skip to content

Commit 9dfc268

Browse files
Merge branch 'master' into master
2 parents a7ad773 + 383d17b commit 9dfc268

File tree

25 files changed

+1318
-761
lines changed

25 files changed

+1318
-761
lines changed

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/cra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-x-example-cra",
3-
"version": "7.4.3",
3+
"version": "7.5.1",
44
"private": true,
55
"scripts": {
66
"dev": "DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-scripts start",

examples/full/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-x-example-full",
3-
"version": "7.4.3",
3+
"version": "7.5.1",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/full/pages/[pageId].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ export const getStaticProps = async (context: any) => {
1919
props: {
2020
recordMap
2121
},
22-
// cache for 60 minutes
22+
// cache for 1 week in seconds
2323
// NOTE: you'll likely want to use a shorter cache time for your app, but
2424
// I'm bumping this up because my vercel bill keeps increasing due to people
2525
// abusing the demo to host their own sites.
26-
revalidate: 60 * 60
26+
revalidate: 604_800
2727
}
2828
}
2929

examples/full/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const getStaticProps = async () => {
1616
props: {
1717
recordMap
1818
},
19-
revalidate: 10
19+
revalidate: 86_400 // cache for 1 day in seconds
2020
}
2121
}
2222

examples/minimal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-x-example-minimal",
3-
"version": "7.4.3",
3+
"version": "7.5.1",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/minimal/pages/[pageId].tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ export const getStaticProps = async (context: any) => {
1212
props: {
1313
recordMap
1414
},
15-
revalidate: 60 * 60 // cache for 60 minutes
15+
// cache for 1 week in seconds
16+
// NOTE: you'll likely want to use a shorter cache time for your app, but
17+
// I'm bumping this up because my vercel bill keeps increasing due to people
18+
// abusing the demo to host their own sites.
19+
revalidate: 604_800
1620
}
1721
}
1822

examples/minimal/pages/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ export const getStaticProps = async () => {
1212
props: {
1313
recordMap
1414
},
15-
revalidate: 10
15+
// cache for 1 day in seconds
16+
// NOTE: you'll likely want to use a shorter cache time for your app, but
17+
// I'm bumping this up because my vercel bill keeps increasing due to people
18+
// abusing the demo to host their own sites.
19+
revalidate: 86_400
1620
}
1721
}
1822

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"repository": "NotionX/react-notion-x",
66
"author": "Travis Fischer <[email protected]>",
77
"license": "MIT",
8-
"version": "7.4.3",
9-
"packageManager": "pnpm@10.11.1",
8+
"version": "7.5.1",
9+
"packageManager": "pnpm@10.17.0",
1010
"engines": {
1111
"node": ">=18"
1212
},
@@ -22,7 +22,6 @@
2222
"test:unit": "turbo test:unit",
2323
"release": "bumpp -r && pnpm publish -r",
2424
"pretest": "run-s build",
25-
"preinstall": "npx only-allow pnpm",
2625
"prepare": "simple-git-hooks"
2726
},
2827
"devDependencies": {

packages/notion-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-client",
3-
"version": "7.4.3",
3+
"version": "7.5.1",
44
"type": "module",
55
"description": "Robust TypeScript client for the unofficial Notion API.",
66
"repository": "NotionX/react-notion-x",

0 commit comments

Comments
 (0)