Skip to content

Commit 5fa2e3c

Browse files
authored
fix: milvus sdk (labring#3249)
1 parent 4723a08 commit 5fa2e3c

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.github/ISSUE_TEMPLATE/bugs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ assignees: ''
2121
- [ ] 公有云版本
2222
- [ ] 私有部署版本, 具体版本号:
2323

24-
**问题描述, 日志截图**
24+
**问题描述, 日志截图,配置文件等**
2525

2626
**复现步骤**
2727

files/docker/docker-compose-pgvector.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ services:
7979
restart: always
8080
fastgpt:
8181
container_name: fastgpt
82-
image: ghcr.io/labring/fastgpt:v4.8.13-fix # git
83-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.13-fix # 阿里云
82+
image: ghcr.io/labring/fastgpt:v4.8.14 # git
83+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.14 # 阿里云
8484
ports:
8585
- 3000:3000
8686
networks:

projects/app/next.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ const nextConfig = {
4545
}
4646

4747
if (isServer) {
48-
// config.externals.push('@zilliz/milvus2-sdk-node');
49-
5048
if (nextRuntime === 'nodejs') {
5149
const oldEntry = config.entry;
5250
config = {
@@ -84,7 +82,12 @@ const nextConfig = {
8482
transpilePackages: ['@fastgpt/*', 'ahooks'],
8583
experimental: {
8684
// 优化 Server Components 的构建和运行,避免不必要的客户端打包。
87-
serverComponentsExternalPackages: ['mongoose', 'pg', '@node-rs/jieba', 'duck-duck-scrape'],
85+
serverComponentsExternalPackages: [
86+
'mongoose',
87+
'pg',
88+
'@node-rs/jieba',
89+
'@zilliz/milvus2-sdk-node'
90+
],
8891
outputFileTracingRoot: path.join(__dirname, '../../'),
8992
instrumentationHook: true
9093
}

projects/app/src/instrumentation.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ export async function register() {
1010
const [
1111
{ connectMongo },
1212
{ systemStartCb },
13-
{ initGlobalVariables },
14-
{ getInitConfig },
13+
{ initGlobalVariables, getInitConfig },
1514
{ initVectorStore },
1615
{ initRootUser },
1716
{ getSystemPluginCb },
@@ -22,7 +21,6 @@ export async function register() {
2221
import('@fastgpt/service/common/mongo/init'),
2322
import('@fastgpt/service/common/system/tools'),
2423
import('@/service/common/system'),
25-
import('@/service/common/system'),
2624
import('@fastgpt/service/common/vectorStore/controller'),
2725
import('@/service/mongo'),
2826
import('@/service/core/app/plugin'),

0 commit comments

Comments
 (0)