mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: lazy import EditorWrapper and disable ssr for the editor
This commit is contained in:
parent
bd2cdd6167
commit
32a7aeffd2
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { default as React } from 'react'
|
||||
import EditorWrapper from '@components/Objects/Editor/EditorWrapper'
|
||||
import dynamic from 'next/dynamic'
|
||||
import { getCourseMetadataWithAuthHeader } from '@services/courses/courses'
|
||||
import { cookies } from 'next/headers'
|
||||
import { Metadata } from 'next'
|
||||
|
|
@ -9,6 +9,8 @@ import { getOrganizationContextInfoWithId } from '@services/organizations/orgs'
|
|||
import SessionProvider from '@components/Contexts/SessionContext'
|
||||
import EditorOptionsProvider from '@components/Contexts/Editor/EditorContext'
|
||||
import AIEditorProvider from '@components/Contexts/AI/AIEditorContext'
|
||||
const EditorWrapper = dynamic(() => import('@components/Objects/Editor/EditorWrapper'), { ssr: false })
|
||||
|
||||
|
||||
type MetadataProps = {
|
||||
params: { orgslug: string; courseid: string; activityid: string }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue