fix:vite config

This commit is contained in:
yujiangping
2025-12-24 12:23:55 +08:00
parent 42610f9cb0
commit 6879326429

View File

@@ -1,11 +1,3 @@
/*
* @Description:
* @Version: 0.0.1
* @Author: yujiangping
* @Date: 2025-12-22 17:33:57
* @LastEditors: yujiangping
* @LastEditTime: 2025-12-24 12:01:18
*/
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
@@ -19,8 +11,7 @@ export default defineConfig({
proxy: {
// 主要API代理支持 /api 和 /api/* 格式
'/api': {
// target: 'http://0.0.0.0:5173', // 后端服务地址
target: 'https://devmemorybear.redbearai.com/',
target: 'http://0.0.0.0:5173', // 后端服务地址
changeOrigin: true,
// 匹配所有以/api开头的请求包括/api/token