Skip to content

Commit d27964b

Browse files
updates
1 parent fa157e2 commit d27964b

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/nextjs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323
- name: npm
2424
id: install-npm
25-
25+
run: npm i && npm install --save-dev [email protected] [email protected] [email protected]
2626
- name: Detect package manager
2727
id: detect-package-manager
2828
run: |
@@ -65,6 +65,8 @@ jobs:
6565
uses: js-just/[email protected]
6666
- name: Move id to deploy
6767
run: mv id deploy/id
68+
- name: Unzip Monaco Editor
69+
run: tar -xvzf third-party/monaco-editor-0.23.0.tgz -C deploy/third-party/monaco-editor
6870
- name: Upload artifact
6971
uses: actions/upload-pages-artifact@v3
7072
with:

lib/builder.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,14 @@ SOFTWARE.
2727
import { useEffect, useState } from 'react';
2828
import { useTranslations } from 'next-intl';
2929
import { useRouter } from 'next/router';
30-
import dynamic from 'next/dynamic';
31-
32-
const MonacoEditor = dynamic(() => import('react-monaco-editor'), { ssr: false });
33-
34-
console.log(MonacoEditor);
3530

3631
const Builder = () => {
3732
const translate = useTranslations();
3833

3934
return (
4035
<div>
4136
<span>{translate.raw('builder-file')}</span>
42-
<MonacoEditor height="600" language="javascript" theme="vs-dark" />
37+
<div id="monaco" />
4338
</div>
4439
)
4540
}
14 MB
Binary file not shown.

0 commit comments

Comments
 (0)