fix:git commit
This commit is contained in:
2
web/.gitignore
vendored
2
web/.gitignore
vendored
@@ -22,5 +22,5 @@ dist-ssr
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
vite.config.js
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* @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 { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
import { resolve } from 'path'
|
import { resolve } from 'path'
|
||||||
@@ -11,7 +19,8 @@ export default defineConfig({
|
|||||||
proxy: {
|
proxy: {
|
||||||
// 主要API代理,支持 /api 和 /api/* 格式
|
// 主要API代理,支持 /api 和 /api/* 格式
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://0.0.0.0:5173', // 后端服务地址
|
// target: 'http://0.0.0.0:5173', // 后端服务地址
|
||||||
|
target: 'https://devmemorybear.redbearai.com/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|
||||||
// 匹配所有以/api开头的请求,包括/api/token
|
// 匹配所有以/api开头的请求,包括/api/token
|
||||||
|
|||||||
Reference in New Issue
Block a user