mirror of https://github.com/langgenius/dify.git
fix(web): rollback React Scan dynamic import (#30294)
This commit is contained in:
parent
d9cecabe93
commit
446df6b50d
|
|
@ -1,8 +1,6 @@
|
|||
import type { Viewport } from 'next'
|
||||
import { ThemeProvider } from 'next-themes'
|
||||
import dynamic from 'next/dynamic'
|
||||
import { Instrument_Serif } from 'next/font/google'
|
||||
import { IS_DEV } from '@/config'
|
||||
import GlobalPublicStoreProvider from '@/context/global-public-context'
|
||||
import { TanstackQueryInitializer } from '@/context/query-client'
|
||||
import { getLocaleOnServer } from '@/i18n-config/server'
|
||||
|
|
@ -10,15 +8,12 @@ import { DatasetAttr } from '@/types/feature'
|
|||
import { cn } from '@/utils/classnames'
|
||||
import BrowserInitializer from './components/browser-initializer'
|
||||
import I18nServer from './components/i18n-server'
|
||||
import { ReactScan } from './components/react-scan'
|
||||
import SentryInitializer from './components/sentry-initializer'
|
||||
import RoutePrefixHandle from './routePrefixHandle'
|
||||
import './styles/globals.css'
|
||||
import './styles/markdown.scss'
|
||||
|
||||
const ReactScan = IS_DEV
|
||||
? dynamic(() => import('./components/react-scan').then(m => m.ReactScan), { ssr: false })
|
||||
: () => null
|
||||
|
||||
export const viewport: Viewport = {
|
||||
width: 'device-width',
|
||||
initialScale: 1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue