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

fix: proxy auth in vite.config.js

Wentao Lyu4a95b30a0d73
diff --git a/client/vite.config.ts b/client/vite.config.ts
index 180789f29e..73edb63a9c 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -1,29 +1,33 @@
-import { defineConfig } from "vite";
-import react from "@vitejs/plugin-react";
+import { defineConfig } from 'vite';
+import react from '@vitejs/plugin-react';
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
server: {
- host: "localhost",
+ host: 'localhost',
port: 3090,
strictPort: false,
proxy: {
- "/api": {
- target: "http://localhost:3080",
- changeOrigin: true,
+ '/api': {
+ target: 'http://localhost:3080',
+ changeOrigin: true
+ },
+ '/auth': {
+ target: 'http://localhost:3080',
+ changeOrigin: true
}
}
},
plugins: [react()],
- publicDir: "./public",
+ publicDir: './public',
build: {
sourcemap: true,
- outDir: "./dist",
+ outDir: './dist'
},
resolve: {
alias: {
- "~": path.join(__dirname, "src/"),
- },
- },
+ '~': path.join(__dirname, 'src/')
+ }
+ }
});