From ac25c687b00e166e40fb054b4f0a06852b4bd280 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Fri, 1 Nov 2024 00:38:11 -0500 Subject: [PATCH] fix --- next.config.js | 1 + package.json | 8 +++--- pages/api/social-image.tsx | 2 +- pnpm-lock.yaml | 51 +++++++++++++++++++------------------- tsconfig.json | 1 + 5 files changed, 32 insertions(+), 31 deletions(-) diff --git a/next.config.js b/next.config.js index 793af82..9faccb9 100644 --- a/next.config.js +++ b/next.config.js @@ -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`. diff --git a/package.json b/package.json index 452c82f..11c0662 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/pages/api/social-image.tsx b/pages/api/social-image.tsx index 26d079d..f27ce3c 100644 --- a/pages/api/social-image.tsx +++ b/pages/api/social-image.tsx @@ -14,7 +14,7 @@ const interBoldFontP = ky( ).arrayBuffer() export const config = { - runtime: 'experimental-edge' + runtime: 'edge' } export default async function OGImage(req: NextRequest) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c1d0582..5f3290c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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' diff --git a/tsconfig.json b/tsconfig.json index 06ec691..5909c80 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ "esModuleInterop": true, "module": "esnext", "moduleResolution": "bundler", + "moduleDetection": "force", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve",