mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-09 01:02:24 +08:00
chore: backport selected main commits to v4.14.x (#6840)
* chore: bump pro submodule for hydration stability (#6808) * sandbox-sync-agent * refactor: host pro as submodule * chore: checkpoint host pro restructure * refactor workspace test layout and startup init * chore: update next turbopack setup * chore: snapshot current work before actions fix * chore: update pro submodule * chore: point pro submodule url to upstream https * fix: Dockerfile * chore: update pro submodule * ci: support private pro submodule token and skip fork jobs * fix(ci): build sdk workspace deps before code-sandbox bundle * fix(app): exclude vitest configs from production typecheck * fix(app-image): build sdk packages before next build * fix(ci): align dockerfiles with workspace sdk build flow * chore(docker): upgrade node20 docker images to node24 * fix(ci): read admin coverage output path in pro test workflow * fix(app-image): include next-i18next config and locale assets * chore: update pro submodule * chore: do not specify branch for submodule * chore: remove most ts-nocheck sign * chore: update pro submodule * chore: remove sandbox-agent-sync package * chore: do not modify "pushData" file logic * fix: health check * chore: restore dev axios proxy state * fix: test-fastgpt report workflow * fix: use valid vitest coverage action inputs * update shell (#6830) * .codex (#6832) * fix: home chat file uploads (#6838) * chore: update actions workflow yamls * chore: update turbo.json * fix: split admin preview image workflows * fix: allow home chat file uploads * chore: add skip file type check env (#6839) * chore: update actions workflow yamls (#6835) * chore: update actions workflow yamls * fix: allow pro workflows on fork pull requests * chore: update turbo.json * fix: split admin preview image workflows * chore: bump pro submodule for admin typecheck * chore: update pro submodule * chore: bump pro submodule for turbo ignore * chore: update pro submodule for file download api --------- Co-authored-by: Archer <545436317@qq.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import path from 'path';
|
||||
const ROOT_DIR = path.resolve(__dirname, '../../..');
|
||||
const WORKER_SOURCE_DIR = path.join(ROOT_DIR, 'packages/service/worker');
|
||||
const WORKER_OUTPUT_DIR = path.join(__dirname, '../worker');
|
||||
const OTEL_SDK_DIR = path.join(ROOT_DIR, 'sdk/otel/src');
|
||||
|
||||
/**
|
||||
* Worker 预编译脚本
|
||||
@@ -47,6 +48,12 @@ async function buildWorkers(watch: boolean = false) {
|
||||
minify: true,
|
||||
treeShaking: true,
|
||||
keepNames: false,
|
||||
alias: {
|
||||
'@fastgpt-sdk/otel': path.join(OTEL_SDK_DIR, 'index.ts'),
|
||||
'@fastgpt-sdk/otel/logger': path.join(OTEL_SDK_DIR, 'logger-entry.ts'),
|
||||
'@fastgpt-sdk/otel/metrics': path.join(OTEL_SDK_DIR, 'metrics-entry.ts'),
|
||||
'@fastgpt-sdk/otel/tracing': path.join(OTEL_SDK_DIR, 'tracing-entry.ts')
|
||||
},
|
||||
// 移除调试代码
|
||||
drop: process.env.NODE_ENV === 'production' ? ['console', 'debugger'] : []
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user