mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
web: bump Next.js to 14.0 for faster local server startup (#1925)
This commit is contained in:
parent
c32c177e15
commit
126b4c332f
|
@ -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",
|
||||
|
|
1474
web/yarn.lock
1474
web/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user