mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 11:58:38 +00:00
default config
This commit is contained in:
@@ -39,9 +39,9 @@ const defaultSystemEnv = {
|
||||
};
|
||||
const defaultFeConfigs = {
|
||||
show_emptyChat: true,
|
||||
show_register: true,
|
||||
show_register: false,
|
||||
show_appStore: false,
|
||||
show_userDetail: true,
|
||||
show_userDetail: false,
|
||||
show_git: true,
|
||||
systemTitle: 'FastAI',
|
||||
authorText: 'Made by FastAI Team.'
|
||||
@@ -90,8 +90,9 @@ const defaultVectorModels = [
|
||||
|
||||
export async function getInitConfig() {
|
||||
try {
|
||||
const filename = process.env.NODE_ENV === 'development' ? 'config.json.local' : 'config.json';
|
||||
const res = JSON.parse(readFileSync(`data/${filename}`, 'utf-8'));
|
||||
const filename =
|
||||
process.env.NODE_ENV === 'development' ? 'data/config.json.local' : '/app/data/config.json';
|
||||
const res = JSON.parse(readFileSync(filename, 'utf-8'));
|
||||
console.log(res);
|
||||
|
||||
global.systemEnv = res.SystemParams || defaultSystemEnv;
|
||||
|
@@ -1,4 +1,3 @@
|
||||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||
import type { NextApiRequest, NextApiResponse } from 'next';
|
||||
import { jsonRes } from '@/service/response';
|
||||
import { AuthCode } from '@/service/models/authCode';
|
||||
|
Reference in New Issue
Block a user