12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- 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-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: []
- }
- })
|