Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
126b4c33
Unverified
Commit
126b4c33
authored
Jan 09, 2024
by
Bowen Liang
Committed by
GitHub
Jan 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web: bump Next.js to 14.0 for faster local server startup (#1925)
parent
c32c177e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
825 additions
and
660 deletions
+825
-660
layout.tsx
web/app/layout.tsx
+9
-1
next.config.js
web/next.config.js
+0
-1
package.json
web/package.json
+3
-3
yarn.lock
web/yarn.lock
+813
-655
No files found.
web/app/layout.tsx
View file @
126b4c33
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
=
({
...
...
web/next.config.js
View file @
126b4c33
...
...
@@ -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
:
{
...
...
web/package.json
View file @
126b4c33
...
...
@@ -23,7 +23,7 @@
"@lexical/react"
:
"^0.12.2"
,
"@mdx-js/loader"
:
"^2.3.0"
,
"@mdx-js/react"
:
"^2.3.0"
,
"@next/mdx"
:
"^1
3.2
.4"
,
"@next/mdx"
:
"^1
4.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"
:
"^1
3.4.7
"
,
"eslint-config-next"
:
"^1
4.0.4
"
,
"husky"
:
"^8.0.3"
,
"lint-staged"
:
"^13.2.2"
,
"miragejs"
:
"^0.1.47"
,
...
...
web/yarn.lock
View file @
126b4c33
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment