We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e92a66d commit 86cdca5Copy full SHA for 86cdca5
packages/web/app/src/laboratory/components/laboratory/editor.tsx
@@ -4,6 +4,10 @@ import { initializeMode } from 'monaco-graphql/initializeMode';
4
import { useLaboratory } from '@/laboratory/components/laboratory/context';
5
import MonacoEditor, { loader } from '@monaco-editor/react';
6
7
+if (typeof window !== 'undefined') {
8
+ (window as any).monaco = monaco;
9
+}
10
+
11
loader.config({ monaco });
12
13
monaco.languages.register({ id: 'dotenv' });
0 commit comments