| import type { Viewport } from 'next' | |||||
| import I18nServer from './components/i18n-server' | import I18nServer from './components/i18n-server' | ||||
| import BrowerInitor from './components/browser-initor' | import BrowerInitor from './components/browser-initor' | ||||
| import SentryInitor from './components/sentry-initor' | import SentryInitor from './components/sentry-initor' | ||||
| export const metadata = { | export const metadata = { | ||||
| title: 'Dify', | 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 = ({ | const LocaleLayout = ({ |
| // Configure pageExtensions to include md and mdx | // Configure pageExtensions to include md and mdx | ||||
| pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'], | pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'], | ||||
| experimental: { | experimental: { | ||||
| appDir: true, | |||||
| }, | }, | ||||
| // fix all before production. Now it slow the develop speed. | // fix all before production. Now it slow the develop speed. | ||||
| eslint: { | eslint: { |
| "@lexical/react": "^0.12.2", | "@lexical/react": "^0.12.2", | ||||
| "@mdx-js/loader": "^2.3.0", | "@mdx-js/loader": "^2.3.0", | ||||
| "@mdx-js/react": "^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/react": "^7.54.0", | ||||
| "@sentry/utils": "^7.54.0", | "@sentry/utils": "^7.54.0", | ||||
| "@tailwindcss/line-clamp": "^0.4.4", | "@tailwindcss/line-clamp": "^0.4.4", | ||||
| "lodash-es": "^4.17.21", | "lodash-es": "^4.17.21", | ||||
| "mermaid": "10.4.0", | "mermaid": "10.4.0", | ||||
| "negotiator": "^0.6.3", | "negotiator": "^0.6.3", | ||||
| "next": "13.3.1", | |||||
| "next": "^14.0.4", | |||||
| "qrcode.react": "^3.1.0", | "qrcode.react": "^3.1.0", | ||||
| "qs": "^6.11.1", | "qs": "^6.11.1", | ||||
| "rc-textarea": "^1.5.2", | "rc-textarea": "^1.5.2", | ||||
| "autoprefixer": "^10.4.14", | "autoprefixer": "^10.4.14", | ||||
| "cross-env": "^7.0.3", | "cross-env": "^7.0.3", | ||||
| "eslint": "^8.36.0", | "eslint": "^8.36.0", | ||||
| "eslint-config-next": "^13.4.7", | |||||
| "eslint-config-next": "^14.0.4", | |||||
| "husky": "^8.0.3", | "husky": "^8.0.3", | ||||
| "lint-staged": "^13.2.2", | "lint-staged": "^13.2.2", | ||||
| "miragejs": "^0.1.47", | "miragejs": "^0.1.47", |