Files
Cosmos-Server/vite.config.js
T
2024-11-20 23:04:08 +00:00

28 lines
577 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
root: 'client',
build: {
outDir: '../static',
},
server: {
proxy: {
'/cosmos/api': {
// target: 'https://localhost:8443',
target: 'https://192.168.1.197',
secure: false,
ws: true,
},
'/cosmos/rclone': {
// target: 'https://localhost:8443',
target: 'https://192.168.1.197',
secure: false,
ws: true,
}
}
}
})