| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | import dynamic from 'next/dynamic'; |
| 9 | |
| 10 | /** |
| 11 | * monaco-editor is currently not compatible with ssr |
| 12 | * https://github.com/vercel/next.js/issues/31692 |
| 13 | */ |
| 14 | const Editor = dynamic(() => import('./EditorImpl'), { |
| 15 | ssr: false, |
| 16 | }); |
| 17 | |
| 18 | export default Editor; |