This commit is contained in:
Travis Fischer
2024-11-01 00:38:11 -05:00
parent c738b43007
commit ac25c687b0
5 changed files with 32 additions and 31 deletions

View File

@@ -50,6 +50,7 @@ export default withBundleAnalyzer({
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;"
},
webpack: (config, _context) => {
// Workaround for ensuring that `react` and `react-dom` resolve correctly
// when using a locally-linked version of `react-notion-x`.

View File

@@ -42,9 +42,9 @@
"ky": "^1.7.2",
"lqip-modern": "^2.1.0",
"next": "^15.0.2",
"notion-client": "^7.0.0",
"notion-types": "^7.0.0",
"notion-utils": "^7.0.0",
"notion-client": "^7.0.1",
"notion-types": "^7.0.1",
"notion-utils": "^7.0.1",
"p-map": "^7.0.2",
"p-memoize": "^7.1.1",
"posthog-js": "^1.20.2",
@@ -52,7 +52,7 @@
"react": "^18.2.0",
"react-body-classname": "^1.3.1",
"react-dom": "^18.2.0",
"react-notion-x": "^7.0.0",
"react-notion-x": "^7.0.1",
"react-tweet-embed": "^2.0.0",
"react-use": "^17.4.2",
"rss": "^1.2.2"

View File

@@ -14,7 +14,7 @@ const interBoldFontP = ky(
).arrayBuffer()
export const config = {
runtime: 'experimental-edge'
runtime: 'edge'
}
export default async function OGImage(req: NextRequest) {

51
pnpm-lock.yaml generated
View File

@@ -45,14 +45,14 @@ importers:
specifier: ^15.0.2
version: 15.0.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
notion-client:
specifier: ^7.0.0
version: 7.0.0
specifier: ^7.0.1
version: 7.0.1
notion-types:
specifier: ^7.0.0
version: 7.0.0
specifier: ^7.0.1
version: 7.0.1
notion-utils:
specifier: ^7.0.0
version: 7.0.0
specifier: ^7.0.1
version: 7.0.1
p-map:
specifier: ^7.0.2
version: 7.0.2
@@ -75,8 +75,8 @@ importers:
specifier: ^18.2.0
version: 18.3.1(react@18.3.1)
react-notion-x:
specifier: ^7.0.0
version: 7.0.0(@babel/runtime@7.26.0)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
specifier: ^7.0.1
version: 7.0.1(@babel/runtime@7.26.0)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
react-tweet-embed:
specifier: ^2.0.0
version: 2.0.0(react@18.3.1)
@@ -1691,16 +1691,16 @@ packages:
resolution: {integrity: sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w==}
engines: {node: '>=14.16'}
notion-client@7.0.0:
resolution: {integrity: sha512-vJcUt+rH/5sIKgBANP/JGlFdSD1hJKRUQ0AOBmHNOIhHLKR78w7dIt6LslIHL97ZT0qgvlH19e9qj6asYCmu1g==}
notion-client@7.0.1:
resolution: {integrity: sha512-nVJktjm6VOIrfpQXs8UhPFmEj4TpWsXMHwOTk6hbMry4IGemNpJ1pBnx2YY+2nCzvkJrvEiTLmKFuE+kkbGCfg==}
engines: {node: '>=18'}
notion-types@7.0.0:
resolution: {integrity: sha512-WH0NDntrgzPJn/W+XZFbfDulUqUtBVmzaQYgZRM/bJpQEy1Fz26TYmPY1nB8maXNlR6Lu9sXpIsV9vZIbCSh5A==}
notion-types@7.0.1:
resolution: {integrity: sha512-vtyEBDdBKULYFrnMSzQpvcbs8vQm6jPca6wMmjTADXih0dAJqw5QLrPVUgCeKdnPfFJwldHmAL4FuOYQ3HhNvQ==}
engines: {node: '>=18'}
notion-utils@7.0.0:
resolution: {integrity: sha512-3j6ycXboKruHStxdayuupP08XCEWtuS1hy4ZoClFQV/K6Yj2zKqmqvRW9wMBpVYHPI75y9dTYT4oHb3xaYF5Og==}
notion-utils@7.0.1:
resolution: {integrity: sha512-c9pjCEKrNpocu62cRXn5A30rPIGNjPCCU5/ucoMve07E+xLXD6+JzJZvKRy6dteUtcSHdr/IQSbrAqCeHfGRcQ==}
engines: {node: '>=18'}
npm-normalize-package-bin@4.0.0:
@@ -1960,8 +1960,8 @@ packages:
react: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18
react-dom: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18
react-notion-x@7.0.0:
resolution: {integrity: sha512-SDyzBuysb5g1MeHR1/NFQeyRLIDSX4J+ThFx6zTYqftJEAiQjyzreTKvgsg+YCtoCa3eTUHIbcHQrUAyJ0hNbw==}
react-notion-x@7.0.1:
resolution: {integrity: sha512-/uvP1AGXXJgpbS7y9As2hk/v9pD0yC27fseLLkyhlbAHvWUb3TstHqI4CoJ8hn3jyuvyH6dKQ6wUX7jyb4S9Lg==}
engines: {node: '>=18'}
peerDependencies:
react: '>=18'
@@ -4211,21 +4211,21 @@ snapshots:
normalize-url@8.0.1: {}
notion-client@7.0.0:
notion-client@7.0.1:
dependencies:
ky: 1.7.2
notion-types: 7.0.0
notion-utils: 7.0.0
notion-types: 7.0.1
notion-utils: 7.0.1
p-map: 7.0.2
notion-types@7.0.0: {}
notion-types@7.0.1: {}
notion-utils@7.0.0:
notion-utils@7.0.1:
dependencies:
is-url-superb: 6.1.0
mem: 10.0.0
normalize-url: 8.0.1
notion-types: 7.0.0
notion-types: 7.0.1
p-queue: 8.0.1
npm-normalize-package-bin@4.0.0: {}
@@ -4484,13 +4484,13 @@ snapshots:
react-lifecycles-compat: 3.0.4
warning: 4.0.3
react-notion-x@7.0.0(@babel/runtime@7.26.0)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
react-notion-x@7.0.1(@babel/runtime@7.26.0)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
dependencies:
'@fisch0920/medium-zoom': 1.0.7
'@matejmazur/react-katex': 3.1.3(katex@0.16.11)(react@18.3.1)
katex: 0.16.11
notion-types: 7.0.0
notion-utils: 7.0.0
notion-types: 7.0.1
notion-utils: 7.0.1
prismjs: 1.29.0
react: 18.3.1
react-dom: 18.3.1(react@18.3.1)
@@ -4500,7 +4500,6 @@ snapshots:
react-lazy-images: 1.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
react-modal: 3.16.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
react-pdf: 9.1.1(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
react-use: 17.5.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
transitivePeerDependencies:
- '@babel/runtime'
- '@types/react'

View File

@@ -10,6 +10,7 @@
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",