Cosmos-Server/vite.config.js

22 lines
389 B
JavaScript
Raw Normal View History

2023-03-12 18:17:28 +00:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
root: 'client',
build: {
outDir: '../static',
},
2023-03-16 18:56:36 +00:00
// base: '/ui',
2023-03-12 18:17:28 +00:00
server: {
proxy: {
'/cosmos/api': {
target: 'https://localhost:8443',
secure: false,
2023-05-11 18:15:05 +00:00
ws: true,
2023-03-12 18:17:28 +00:00
}
}
}
})