| @@ -1,3 +1,4 @@ | |||
| import type { Viewport } from 'next' | |||
| import I18nServer from './components/i18n-server' | |||
| import BrowerInitor from './components/browser-initor' | |||
| import SentryInitor from './components/sentry-initor' | |||
| @@ -8,7 +9,14 @@ import './styles/markdown.scss' | |||
| export const metadata = { | |||
| title: 'Dify', | |||
| viewport: 'width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover, user-scalable=no', | |||
| } | |||
| export const viewport: Viewport = { | |||
| width: 'device-width', | |||
| initialScale: 1, | |||
| maximumScale: 1, | |||
| viewportFit: 'cover', | |||
| userScalable: false, | |||
| } | |||
| const LocaleLayout = ({ | |||
| @@ -17,7 +17,6 @@ const nextConfig = { | |||
| // Configure pageExtensions to include md and mdx | |||
| pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'], | |||
| experimental: { | |||
| appDir: true, | |||
| }, | |||
| // fix all before production. Now it slow the develop speed. | |||
| eslint: { | |||
| @@ -23,7 +23,7 @@ | |||
| "@lexical/react": "^0.12.2", | |||
| "@mdx-js/loader": "^2.3.0", | |||
| "@mdx-js/react": "^2.3.0", | |||
| "@next/mdx": "^13.2.4", | |||
| "@next/mdx": "^14.0.4", | |||
| "@sentry/react": "^7.54.0", | |||
| "@sentry/utils": "^7.54.0", | |||
| "@tailwindcss/line-clamp": "^0.4.4", | |||
| @@ -47,7 +47,7 @@ | |||
| "lodash-es": "^4.17.21", | |||
| "mermaid": "10.4.0", | |||
| "negotiator": "^0.6.3", | |||
| "next": "13.3.1", | |||
| "next": "^14.0.4", | |||
| "qrcode.react": "^3.1.0", | |||
| "qs": "^6.11.1", | |||
| "rc-textarea": "^1.5.2", | |||
| @@ -99,7 +99,7 @@ | |||
| "autoprefixer": "^10.4.14", | |||
| "cross-env": "^7.0.3", | |||
| "eslint": "^8.36.0", | |||
| "eslint-config-next": "^13.4.7", | |||
| "eslint-config-next": "^14.0.4", | |||
| "husky": "^8.0.3", | |||
| "lint-staged": "^13.2.2", | |||
| "miragejs": "^0.1.47", | |||