1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- import {resolve} from "path";
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [vue()],
- base: '/',
- resolve: {
- alias: {
- '@': resolve(__dirname, 'src'),
- },
- },
- server: {
- port: 6886,
- // open: true,
- https: false,
- base: './',
- host: '0.0.0.0',
- strictPort: false,
- proxy: {
- '/api/': {
- // target: 'http://localhost:8080/',
- // target: 'http://127.0.0.1:3001/',
- target: 'http://10.110.35.47/',
- changeOrigin: true,
- rewrite: path => {
- return path.replace(/^\/api/, '')
- }
- },
- '/api-gateway/': {
- // target: 'http://localhost:8080/',
- // target: 'http://127.0.0.1:3002/',
- target: 'http://10.110.32.62/',
- changeOrigin: true,
- rewrite: path => {
- return path.replace(/^\/api-gateway/, '')
- }
- },
- '/api-wazx/': {
- // target: 'http://localhost:8080/',
- // target: 'http://127.0.0.1:3002/',
- target: 'http://10.110.49.2:8090/api-wazx/',
- changeOrigin: true,
- rewrite: path => {
- return path.replace(/^\/api-wazx/, '')
- }
- },
- '/api-csb/': {
- // target: 'http://localhost:8080/',
- // target: 'http://127.0.0.1:3002/',
- // target: 'http://10.110.49.2:8090/api-csb/',
- target: 'http://csb-broker.paas.sgpt.gov:8086/',
- changeOrigin: true,
- rewrite: path => {
- return path.replace(/^\/api-csb/, '')
- }
- },
- '/api-screen/': {
- // target: 'http://localhost:8080/',
- // target: 'http://127.0.0.1:3002/',
- target: 'http://10.110.49.2:8090/api-screen/',
- changeOrigin: true,
- rewrite: path => {
- return path.replace(/^\/api-screen/, '')
- }
- },
- '/api-tes/': {
- // target: 'http://localhost:8080/',
- target: 'http://10.110.31.81/odae-video/',
- // target: 'http://10.110.32.62/',
- changeOrigin: true,
- rewrite: path => {
- return path.replace(/^\/api-tes/, '')
- }
- },
- '/api-tes-ws/': {
- target: 'http://10.110.31.81/odae-video/',
- ws: true,
- changeOrigin: true,
- rewrite: path => {
- return path.replace(/^\/api-tes-ws/, '')
- }
- }
- }
- },
- build: {
- outDir: "social-management-screen",
- },
- publicDir: 'src/out',
- optimizeDeps: {
- include: []
- }
- })
|