chore: initial commit of ai site platform
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
17
web/vite.config.ts
Normal file
17
web/vite.config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
host: "127.0.0.1",
|
||||
port: 5173,
|
||||
strictPort: true,
|
||||
proxy: {
|
||||
// 统一走 Go 网关 :8180
|
||||
"/api": "http://127.0.0.1:8180",
|
||||
"/ai": "http://127.0.0.1:8180",
|
||||
"/gateway": "http://127.0.0.1:8180",
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user