Skip to content

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

🧩 chore: Prebundle Node Polyfills for Buffer, Process, and Global in Vite `optimizeDeps` (#14354)

Danny Avila1a58c724445f
diff --git a/client/vite.config.ts b/client/vite.config.ts
index bf6fb53ff3..7f3d132301 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -177,6 +177,13 @@ export default defineConfig(({ command }) => ({
threshold: 10240,
}),
],
+ optimizeDeps: {
+ include: [
+ 'vite-plugin-node-polyfills/shims/buffer',
+ 'vite-plugin-node-polyfills/shims/process',
+ 'vite-plugin-node-polyfills/shims/global',
+ ],
+ },
publicDir: command === 'serve' ? './public' : false,
build: {
sourcemap: buildSourceMap,