@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
23 lines (19 loc) • 671 B
text/typescript
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace NodeJS {
interface ProcessEnv {
NEXT_PUBLIC_DEVELOPER_DEBUG: string;
NEXT_PUBLIC_I18N_DEBUG: string;
NEXT_PUBLIC_I18N_DEBUG_BROWSER: string;
NEXT_PUBLIC_I18N_DEBUG_SERVER: string;
}
}
}
export const getDebugConfig = () => ({
// developer debug mode
DEBUG_MODE: process.env.NEXT_PUBLIC_DEVELOPER_DEBUG === '1',
// i18n debug mode
I18N_DEBUG: process.env.NEXT_PUBLIC_I18N_DEBUG === '1',
I18N_DEBUG_BROWSER: process.env.NEXT_PUBLIC_I18N_DEBUG_BROWSER === '1',
I18N_DEBUG_SERVER: process.env.NEXT_PUBLIC_I18N_DEBUG_SERVER === '1',
});