Skip to content

Commit

Permalink
fix: milvus sdk (#3249)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored Nov 27, 2024
1 parent 4723a08 commit 5fa2e3c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bugs.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ assignees: ''
- [ ] 公有云版本
- [ ] 私有部署版本, 具体版本号:

**问题描述, 日志截图**
**问题描述, 日志截图,配置文件等**

**复现步骤**

Expand Down
4 changes: 2 additions & 2 deletions files/docker/docker-compose-pgvector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ services:
restart: always
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.8.13-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.13-fix # 阿里云
image: ghcr.io/labring/fastgpt:v4.8.14 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.14 # 阿里云
ports:
- 3000:3000
networks:
Expand Down
9 changes: 6 additions & 3 deletions projects/app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ const nextConfig = {
}

if (isServer) {
// config.externals.push('@zilliz/milvus2-sdk-node');

if (nextRuntime === 'nodejs') {
const oldEntry = config.entry;
config = {
Expand Down Expand Up @@ -84,7 +82,12 @@ const nextConfig = {
transpilePackages: ['@fastgpt/*', 'ahooks'],
experimental: {
// 优化 Server Components 的构建和运行,避免不必要的客户端打包。
serverComponentsExternalPackages: ['mongoose', 'pg', '@node-rs/jieba', 'duck-duck-scrape'],
serverComponentsExternalPackages: [
'mongoose',
'pg',
'@node-rs/jieba',
'@zilliz/milvus2-sdk-node'
],
outputFileTracingRoot: path.join(__dirname, '../../'),
instrumentationHook: true
}
Expand Down
4 changes: 1 addition & 3 deletions projects/app/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export async function register() {
const [
{ connectMongo },
{ systemStartCb },
{ initGlobalVariables },
{ getInitConfig },
{ initGlobalVariables, getInitConfig },
{ initVectorStore },
{ initRootUser },
{ getSystemPluginCb },
Expand All @@ -22,7 +21,6 @@ export async function register() {
import('@fastgpt/service/common/mongo/init'),
import('@fastgpt/service/common/system/tools'),
import('@/service/common/system'),
import('@/service/common/system'),
import('@fastgpt/service/common/vectorStore/controller'),
import('@/service/mongo'),
import('@/service/core/app/plugin'),
Expand Down

0 comments on commit 5fa2e3c

Please sign in to comment.