mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
4.8.16 test (#3442)
* perf: simple app save * fix: notify config i18n * perf: service side props render * perf: model selector * update doc
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import path from 'path';
|
||||
import { isProduction } from '@fastgpt/global/common/system/constants';
|
||||
|
||||
export const tmpFileDirPath =
|
||||
process.env.NODE_ENV === 'production' ? '/app/tmp' : path.join(process.cwd(), 'tmp');
|
||||
export const tmpFileDirPath = isProduction ? '/app/tmp' : path.join(process.cwd(), 'tmp');
|
||||
|
||||
export const previewMaxCharCount = 3000;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { isProduction } from '../system/constants';
|
||||
import { isProduction } from '@fastgpt/global/common/system/constants';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
|
@@ -1,3 +1 @@
|
||||
export const FastGPTProUrl = process.env.PRO_URL ? `${process.env.PRO_URL}/api` : '';
|
||||
|
||||
export const isProduction = process.env.NODE_ENV === 'production';
|
||||
|
Reference in New Issue
Block a user