@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.
18 lines (15 loc) • 538 B
text/typescript
import { createEnv } from '@t3-oss/env-nextjs';
import { z } from 'zod';
export const getPythonConfig = () => {
return createEnv({
client: {
NEXT_PUBLIC_PYODIDE_INDEX_URL: z.string().url().optional(),
NEXT_PUBLIC_PYODIDE_PIP_INDEX_URL: z.string().url().optional(),
},
runtimeEnv: {
NEXT_PUBLIC_PYODIDE_INDEX_URL: process.env.NEXT_PUBLIC_PYODIDE_INDEX_URL,
NEXT_PUBLIC_PYODIDE_PIP_INDEX_URL: process.env.NEXT_PUBLIC_PYODIDE_PIP_INDEX_URL,
},
});
};
export const pythonEnv = getPythonConfig();