Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🔧 fix: type checking for process.browser in api-endpoints.ts
Danny Avila2483623c888c
diff --git a/packages/data-provider/src/api-endpoints.ts b/packages/data-provider/src/api-endpoints.tsindex ca00ee1d9b..88e90aeae8 100644--- a/packages/data-provider/src/api-endpoints.ts+++ b/packages/data-provider/src/api-endpoints.ts@@ -3,7 +3,10 @@ import * as q from './types/queries';import { ResourceType } from './accessPermissions';let BASE_URL = '';-if (typeof process === 'undefined' || process?.browser === true) {+if (+ typeof process === 'undefined' ||+ (process as typeof process & { browser?: boolean }).browser === true+) {// process is only available in node context, or process.browser is true in client-side code// This is to ensure that the BASE_URL is set correctly based on the <base>// element in the HTML document, if it exists.