Skip to content

Commit

Permalink
feat(example): upgrade nextjs (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanshuyou authored Feb 2, 2024
1 parent 0d538cf commit 14d0a7d
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 112 deletions.
6 changes: 6 additions & 0 deletions examples/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { MilvusClient } from '@zilliz/milvus2-sdk-node';

/**
* This option is equivalent to getServerSideProps() in the pages directory.
* https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
*/
export const dynamic = 'force-dynamic';

async function getData() {
const milvusClient = new MilvusClient({
address: '10.102.6.196:19530',
Expand Down
6 changes: 3 additions & 3 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"lint": "next lint"
},
"dependencies": {
"@zilliz/milvus2-sdk-node": "^2.3.2",
"copy-webpack-plugin": "^11.0.0",
"next": "13.5.4",
"@zilliz/milvus2-sdk-node": "^2.3.5",
"copy-webpack-plugin": "^12.0.2",
"next": "14.1.0",
"react": "^18",
"react-dom": "^18"
},
Expand Down
Loading

0 comments on commit 14d0a7d

Please sign in to comment.