-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update shiki to fix diff code highlighting (#2338)
- Loading branch information
Showing
6 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'gitbook': minor | ||
--- | ||
|
||
Update shiki for code block syntax highlighting, with support for more languages and fixes for diffs. It also patches the deployment on Cloudflare to support edge functions larger than 4MB. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,8 @@ | |
"@changesets/cli": "^2.27.7", | ||
"prettier": "^3.0.3", | ||
"turbo": "^2.0.9" | ||
}, | ||
"patchedDependencies": { | ||
"@vercel/[email protected]": "patches/@vercel%[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index 7f9eaa2526e5fad42420f590bb733e5670766e63..302274144d28dde2b9ba8f9018281d2867f79299 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -9484,7 +9484,7 @@ var import_path = require("path"); | ||
// src/constants.ts | ||
var KIB = 1024; | ||
var MIB = 1024 * KIB; | ||
-var EDGE_FUNCTION_SIZE_LIMIT = 4 * MIB; | ||
+var EDGE_FUNCTION_SIZE_LIMIT = 10 * MIB; | ||
var MAX_UNCOMPRESSED_LAMBDA_SIZE = 250 * MIB; | ||
var LAMBDA_RESERVED_UNCOMPRESSED_SIZE = 2.5 * MIB; | ||
var LAMBDA_RESERVED_COMPRESSED_SIZE = 250 * KIB; |