24 lines
513 B
JavaScript
24 lines
513 B
JavaScript
|
import {
|
||
|
defineConfig
|
||
|
} from 'vite';
|
||
|
import uni from '@dcloudio/vite-plugin-uni';
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [uni()],
|
||
|
server: {
|
||
|
host: "localhost",
|
||
|
port: 5173,
|
||
|
proxy: {
|
||
|
"/shopify": {
|
||
|
target: "https://3w823u8516.vicp.fun/shopify",
|
||
|
changeOrigin: true,
|
||
|
rewrite: (path) => path.replace(/^\/shopify/, ""),
|
||
|
},
|
||
|
"/user": {
|
||
|
target: "http://e4g3729303.qicp.vip/user",
|
||
|
changeOrigin: true,
|
||
|
rewrite: (path) => path.replace(/^\/user/, ""),
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
});
|