Cosmos-Server/vite.config.js
2023-05-27 18:11:33 +01:00

20 lines
371 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',
secure: false,
ws: true,
}
}
}
})