mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
fix: milvus sdk (#3249)
This commit is contained in:
2
.github/ISSUE_TEMPLATE/bugs.md
vendored
2
.github/ISSUE_TEMPLATE/bugs.md
vendored
@@ -21,7 +21,7 @@ assignees: ''
|
|||||||
- [ ] 公有云版本
|
- [ ] 公有云版本
|
||||||
- [ ] 私有部署版本, 具体版本号:
|
- [ ] 私有部署版本, 具体版本号:
|
||||||
|
|
||||||
**问题描述, 日志截图**
|
**问题描述, 日志截图,配置文件等**
|
||||||
|
|
||||||
**复现步骤**
|
**复现步骤**
|
||||||
|
|
||||||
|
@@ -79,8 +79,8 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
fastgpt:
|
fastgpt:
|
||||||
container_name: fastgpt
|
container_name: fastgpt
|
||||||
image: ghcr.io/labring/fastgpt:v4.8.13-fix # git
|
image: ghcr.io/labring/fastgpt:v4.8.14 # git
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.13-fix # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.14 # 阿里云
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
networks:
|
networks:
|
||||||
|
@@ -45,8 +45,6 @@ const nextConfig = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isServer) {
|
if (isServer) {
|
||||||
// config.externals.push('@zilliz/milvus2-sdk-node');
|
|
||||||
|
|
||||||
if (nextRuntime === 'nodejs') {
|
if (nextRuntime === 'nodejs') {
|
||||||
const oldEntry = config.entry;
|
const oldEntry = config.entry;
|
||||||
config = {
|
config = {
|
||||||
@@ -84,7 +82,12 @@ const nextConfig = {
|
|||||||
transpilePackages: ['@fastgpt/*', 'ahooks'],
|
transpilePackages: ['@fastgpt/*', 'ahooks'],
|
||||||
experimental: {
|
experimental: {
|
||||||
// 优化 Server Components 的构建和运行,避免不必要的客户端打包。
|
// 优化 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, '../../'),
|
outputFileTracingRoot: path.join(__dirname, '../../'),
|
||||||
instrumentationHook: true
|
instrumentationHook: true
|
||||||
}
|
}
|
||||||
|
@@ -10,8 +10,7 @@ export async function register() {
|
|||||||
const [
|
const [
|
||||||
{ connectMongo },
|
{ connectMongo },
|
||||||
{ systemStartCb },
|
{ systemStartCb },
|
||||||
{ initGlobalVariables },
|
{ initGlobalVariables, getInitConfig },
|
||||||
{ getInitConfig },
|
|
||||||
{ initVectorStore },
|
{ initVectorStore },
|
||||||
{ initRootUser },
|
{ initRootUser },
|
||||||
{ getSystemPluginCb },
|
{ getSystemPluginCb },
|
||||||
@@ -22,7 +21,6 @@ export async function register() {
|
|||||||
import('@fastgpt/service/common/mongo/init'),
|
import('@fastgpt/service/common/mongo/init'),
|
||||||
import('@fastgpt/service/common/system/tools'),
|
import('@fastgpt/service/common/system/tools'),
|
||||||
import('@/service/common/system'),
|
import('@/service/common/system'),
|
||||||
import('@/service/common/system'),
|
|
||||||
import('@fastgpt/service/common/vectorStore/controller'),
|
import('@fastgpt/service/common/vectorStore/controller'),
|
||||||
import('@/service/mongo'),
|
import('@/service/mongo'),
|
||||||
import('@/service/core/app/plugin'),
|
import('@/service/core/app/plugin'),
|
||||||
|
Reference in New Issue
Block a user