Skip to content

Commit 837e34c

Browse files
author
Nicolas Dorseuil
committed
use fix from OpenNext
1 parent 5c49235 commit 837e34c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

bun.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"direction": "^2.0.1",
7878
"event-iterator": "^2.0.0",
7979
"framer-motion": "^10.16.14",
80+
"@opennextjs/cloudflare": "https://pkg.pr.new/@opennextjs/cloudflare@829",
8081
"image-size": "^2.0.2",
8182
"js-cookie": "^3.0.5",
8283
"jsontoxml": "^1.0.1",
@@ -241,6 +242,7 @@
241242
},
242243
"overrides": {
243244
"@codemirror/state": "6.4.1",
245+
"@opennextjs/aws": "https://pkg.pr.new/@opennextjs/aws@939",
244246
"esbuild": "0.24.2",
245247
"react": "^19.0.0",
246248
"react-dom": "^19.0.0",
@@ -787,7 +789,7 @@
787789

788790
"@octokit/types": ["@octokit/[email protected]", "", { "dependencies": { "@octokit/openapi-types": "^25.1.0" } }, "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g=="],
789791

790-
"@opennextjs/aws": ["@opennextjs/aws@3.7.1", "", { "dependencies": { "@ast-grep/napi": "^0.35.0", "@aws-sdk/client-cloudfront": "3.398.0", "@aws-sdk/client-dynamodb": "^3.398.0", "@aws-sdk/client-lambda": "^3.398.0", "@aws-sdk/client-s3": "^3.398.0", "@aws-sdk/client-sqs": "^3.398.0", "@node-minify/core": "^8.0.6", "@node-minify/terser": "^8.0.6", "@tsconfig/node18": "^1.0.1", "aws4fetch": "^1.0.18", "chalk": "^5.3.0", "cookie": "^1.0.2", "esbuild": "0.25.4", "express": "5.0.1", "path-to-regexp": "^6.3.0", "urlpattern-polyfill": "^10.0.0", "yaml": "^2.7.0" }, "bin": { "open-next": "dist/index.js" } }, "sha512-ryV5cQucSJDU0TF3+Jzqn9g0/+zhUZgjNopSnchPvH0SxSAbKkNaNH7SlnWBhykjusqHaFzQ8dfEjcjAq7TJSQ=="],
792+
"@opennextjs/aws": ["@opennextjs/aws@https://pkg.pr.new/@opennextjs/aws@939", { "dependencies": { "@ast-grep/napi": "^0.35.0", "@aws-sdk/client-cloudfront": "3.398.0", "@aws-sdk/client-dynamodb": "^3.398.0", "@aws-sdk/client-lambda": "^3.398.0", "@aws-sdk/client-s3": "^3.398.0", "@aws-sdk/client-sqs": "^3.398.0", "@node-minify/core": "^8.0.6", "@node-minify/terser": "^8.0.6", "@tsconfig/node18": "^1.0.1", "aws4fetch": "^1.0.18", "chalk": "^5.3.0", "cookie": "^1.0.2", "esbuild": "0.25.4", "express": "5.0.1", "path-to-regexp": "^6.3.0", "urlpattern-polyfill": "^10.0.0", "yaml": "^2.7.0" }, "bin": { "open-next": "./dist/index.js" } }],
791793

792794
"@opennextjs/cloudflare": ["@opennextjs/[email protected]", "", { "dependencies": { "@dotenvx/dotenvx": "1.31.0", "@opennextjs/aws": "3.7.1", "cloudflare": "^4.4.1", "enquirer": "^2.4.1", "glob": "^11.0.0", "ts-tqdm": "^0.8.6", "yargs": "^18.0.0" }, "peerDependencies": { "wrangler": "^4.24.4" }, "bin": { "opennextjs-cloudflare": "dist/cli/index.js" } }, "sha512-N96OTbp1970NwLP6dNkAzBDrxjthLQ3VXHcjKl8edqNbJ/iT75H60ZYHU/ZZ7gSZQeJluPvPb1n0ZPQ08EooCQ=="],
793795

@@ -4135,6 +4137,8 @@
41354137

41364138
"gaxios/node-fetch": ["[email protected]", "", { "dependencies": { "whatwg-url": "^5.0.0" }, "peerDependencies": { "encoding": "^0.1.0" }, "optionalPeers": ["encoding"] }, "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A=="],
41374139

4140+
"gitbook/@opennextjs/cloudflare": ["@opennextjs/cloudflare@https://pkg.pr.new/@opennextjs/cloudflare@829", { "dependencies": { "@dotenvx/dotenvx": "1.31.0", "@opennextjs/aws": "3.7.2", "cloudflare": "^4.4.1", "enquirer": "^2.4.1", "glob": "^11.0.0", "ts-tqdm": "^0.8.6", "yargs": "^18.0.0" }, "peerDependencies": { "wrangler": "^4.24.4" }, "bin": { "opennextjs-cloudflare": "dist/cli/index.js" } }],
4141+
41384142
"global-dirs/ini": ["[email protected]", "", {}, "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ=="],
41394143

41404144
"global-prefix/which": ["[email protected]", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "which": "./bin/which" } }, "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ=="],

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"@codemirror/state": "6.4.1",
1313
"react": "^19.0.0",
1414
"react-dom": "^19.0.0",
15-
"esbuild": "0.24.2"
15+
"esbuild": "0.24.2",
16+
"@opennextjs/aws": "https://pkg.pr.new/@opennextjs/aws@939"
1617
},
1718
"private": true,
1819
"scripts": {

packages/gitbook/openNext/customWorkers/middlewareWrangler.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
// When deployed locally, we don't have access to the tag cache here,
2626
// we should just bypass the cache to go to the server directly
2727
"SHOULD_BYPASS_CACHE": "true",
28-
"OPEN_NEXT_REQUEST_ID_HEADER": "true"
28+
"OPEN_NEXT_REQUEST_ID_HEADER": "true",
29+
"GITBOOK_URL": "http://localhost:8771"
2930
},
3031
"r2_buckets": [
3132
{

packages/gitbook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@gitbook/react-contentkit": "workspace:*",
1414
"@gitbook/react-math": "workspace:*",
1515
"@gitbook/react-openapi": "workspace:*",
16-
"@opennextjs/cloudflare": "^1.6.2",
16+
"@opennextjs/cloudflare": "https://pkg.pr.new/@opennextjs/cloudflare@829",
1717
"@radix-ui/react-checkbox": "^1.0.4",
1818
"@radix-ui/react-dropdown-menu": "^2.1.12",
1919
"@radix-ui/react-navigation-menu": "^1.2.3",

0 commit comments

Comments
 (0)