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
refactor: have build served from dist folder
Daniel D Orlandoeb2d9bac335f
diff --git a/api/server/index.js b/api/server/index.jsindex 9f68518c2a..3a48fd156f 100644--- a/api/server/index.js+++ b/api/server/index.js@@ -23,7 +23,7 @@ const projectPath = path.join(__dirname, '..', '..', 'client');app.use(errorController);app.use(cors());app.use(express.json());- app.use(express.static(path.join(projectPath, 'public')));+ app.use(express.static(path.join(projectPath, 'dist')));app.set('trust proxy', 1); // trust first proxyapp.use(session({@@ -69,7 +69,7 @@ const projectPath = path.join(__dirname, '..', '..', 'client');});app.get('/*', routes.authenticatedOrRedirect, function (req, res) {- res.sendFile(path.join(projectPath, 'public', 'index.html'));+ res.sendFile(path.join(projectPath, 'dist', 'index.html'));});app.listen(port, host, () => {diff --git a/client/vite.config.ts b/client/vite.config.tsindex 9d7120967e..180789f29e 100644--- a/client/vite.config.ts+++ b/client/vite.config.ts@@ -16,25 +16,14 @@ export default defineConfig({}},plugins: [react()],+ publicDir: "./public",build: {sourcemap: true,- outDir: "./public",+ outDir: "./dist",},resolve: {alias: {"~": path.join(__dirname, "src/"),},},- define: {- // global: {},- // process: {- // env: {- // VITE_APP_API: process?.env.VITE_APP_API || 'production',- // },- // },- },});--// module.exports = {-// plugins: [require("tailwindcss")],-// };\ No newline at end of file