Merge branch 'feature/form_zy' of https://github.com/SuanmoSuanyangTechnology/MemoryBear into feature/form_zy
This commit is contained in:
@@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react'
|
||||
import { resolve } from 'path'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import svgr from 'vite-plugin-svgr'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
@@ -11,7 +12,15 @@ export default defineConfig({
|
||||
proxy: {
|
||||
// 主要API代理,支持 /api 和 /api/* 格式
|
||||
'/api': {
|
||||
target: 'http://0.0.0.0:5173', // 后端服务地址
|
||||
// target: 'http://192.168.110.86:8000', // lxy
|
||||
// target: 'http://192.168.110.25:8000', // xjn
|
||||
// target: 'http://192.168.110.217:8000', // llq
|
||||
target: 'http://192.168.110.111:8000', // myh
|
||||
// target: 'https://devmemorybear.redbearai.com/', // 开发后端服务地址
|
||||
// target: 'https://devcopymemorybear.redbearai.com/', // 开发sass后端服务地址
|
||||
// target: 'https://testmemorybear.redbearai.com/', // 测试后端服务地址
|
||||
// target: 'https://memorybear.redbearai.com/', // 预发服务地址
|
||||
// target: 'https://cloud.memorybear.ai/', // AMAZON 生产地址
|
||||
changeOrigin: true,
|
||||
|
||||
// 匹配所有以/api开头的请求,包括/api/token
|
||||
@@ -26,6 +35,7 @@ export default defineConfig({
|
||||
},
|
||||
plugins: [
|
||||
tailwindcss(),
|
||||
svgr({ svgrOptions: { icon: true } }),
|
||||
react(),
|
||||
AutoImport({
|
||||
imports: ['react', 'react-router-dom'],
|
||||
|
||||
Reference in New Issue
Block a user