-
Notifications
You must be signed in to change notification settings - Fork 6.5k
WIP(testing) #8835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
WIP(testing) #8835
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -25,8 +25,7 @@ const singletonShiki = await rehypeShikiji({ | |||||||||
| // for security reasons. | ||||||||||
| wasm: !OPEN_NEXT_CLOUDFLARE, | ||||||||||
|
|
||||||||||
| // TODO(@avivkeller): Find a way to enable Twoslash w/ a VFS on Cloudflare | ||||||||||
| twoslash: !OPEN_NEXT_CLOUDFLARE, | ||||||||||
| twoslash: true, | ||||||||||
|
||||||||||
| twoslash: true, | |
| // Twoslash needs Node-like filesystem/VFS support and is disabled on | |
| // Cloudflare workers until a compatible implementation is available. | |
| twoslash: !OPEN_NEXT_CLOUDFLARE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Twoslash enabled on Cloudflare despite known incompatibility
High Severity
The
twoslashoption is now hardcoded totrue, removing the!OPEN_NEXT_CLOUDFLAREguard that previously disabled it on Cloudflare Workers. The removed TODO comment explicitly noted that Twoslash with a VFS doesn't work on Cloudflare. Since thewasmoption on the line above still uses the!OPEN_NEXT_CLOUDFLAREconditional for an analogous Cloudflare limitation, this change breaks consistency and will likely cause failures when running on Cloudflare Workers.Reviewed by Cursor Bugbot for commit f23ba96. Configure here.