mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2026-05-03 09:50:15 -05:00
28 lines
577 B
JavaScript
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,
|
|
}
|
|
}
|
|
}
|
|
})
|