Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: upgrade nextjs version (#457)

zxhlyh80eebc24141c
diff --git a/web/app/components/datasets/documents/index.tsx b/web/app/components/datasets/documents/index.tsx
index 0f4a97248e6..967616128a6 100644
--- a/web/app/components/datasets/documents/index.tsx
+++ b/web/app/components/datasets/documents/index.tsx
@@ -140,8 +140,6 @@ const Documents: FC<IDocumentsProps> = ({ datasetId }) => {
router.push(`/datasets/${datasetId}/documents/create`)
}
- router.prefetch(`/datasets/${datasetId}/documents/create`)
-
const isLoading = !documentsRes && !error
const handleSaveNotionPageSelected = async (selectedPages: (DataSourceNotionPage & { workspace_id: string })[]) => {
diff --git a/web/app/components/datasets/documents/list.tsx b/web/app/components/datasets/documents/list.tsx
index db192a26967..dc428ae7a7b 100644
--- a/web/app/components/datasets/documents/list.tsx
+++ b/web/app/components/datasets/documents/list.tsx
@@ -309,7 +309,7 @@ const DocumentList: FC<IDocumentListProps> = ({ documents = [], datasetId, onUpd
key={doc.id}
className={'border-b border-gray-200 h-8 hover:bg-gray-50 cursor-pointer'}
onClick={() => {
- router.push(`datasets/${datasetId}/documents/${doc.id}`)
+ router.push(`/datasets/${datasetId}/documents/${doc.id}`)
}}>
<td className='text-left align-middle text-gray-500 text-xs'>{doc.position}</td>
<td className={s.tdValue}>
diff --git a/web/package.json b/web/package.json
index b0741ffc732..f825ed49d8f 100644
--- a/web/package.json
+++ b/web/package.json
@@ -44,7 +44,6 @@
"echarts-for-react": "^3.0.2",
"emoji-mart": "^5.5.2",
"eslint": "8.36.0",
- "eslint-config-next": "13.2.4",
"husky": "^8.0.3",
"i18next": "^22.4.13",
"i18next-resources-to-backend": "^1.1.3",
@@ -53,10 +52,10 @@
"katex": "^0.16.7",
"lodash-es": "^4.17.21",
"negotiator": "^0.6.3",
- "next": "13.2.4",
+ "next": "^13.4.7",
"qs": "^6.11.1",
- "react": "18.2.0",
- "react-dom": "18.2.0",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0",
"react-error-boundary": "^4.0.2",
"react-headless-pagination": "^1.1.4",
"react-i18next": "^12.2.0",
@@ -89,6 +88,7 @@
"@types/negotiator": "^0.6.1",
"@types/qs": "^6.9.7",
"@types/sortablejs": "^1.15.1",
+ "eslint-config-next": "^13.4.7",
"eslint-plugin-react-hooks": "^4.6.0",
"lint-staged": "^13.2.2",
"miragejs": "^0.1.47",