-
Notifications
You must be signed in to change notification settings - Fork 904
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
fix: monaco from npm by default, CDN version in dev mode with turbopack #4105
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Signed-off-by: Kirill Chernakov <[email protected]>
…om:keephq/keep into fix/4104-monaco-editor-optional-npm-loader
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.
PR Summary
This PR adds support for loading Monaco Editor from NPM packages instead of CDN to support air-gapped environments, with several key changes to the codebase.
- Added new
MonacoEditorDefault
andMonacoEditorWithNpm
components in/keep-ui/shared/ui/MonacoEditor/
to handle both CDN and NPM loading strategies - Added
MONACO_EDITOR_NPM
configuration flag ingetConfig.ts
to control editor loading method - Refactored workflow state management with new
isDeployed
flag and proper null handling for timestamps - Replaced direct Monaco editor imports across multiple components with the new shared MonacoEditor component
- Modified
next.config.js
to support both webpack and turbo aliases for Monaco Editor NPM loading
21 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile
…n dev mode with turbopack
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.
lgtm
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.
LGTM
Closes #4104