TCP 서버 모드 추가

This commit is contained in:
현성필
2025-01-21 13:19:21 +09:00
parent e23684d833
commit cb9201ddd2
106 changed files with 17710 additions and 0 deletions
+63
View File
@@ -0,0 +1,63 @@
import path from "path"
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import monacoEditorPlugin from './vite.monaco-editor';
export default defineConfig({
define: {
global: {},
},
plugins: [react(),monacoEditorPlugin()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
'/mgmt': {
target: 'http://localhost:38080',
changeOrigin: true,
secure: false,
},
'/api': {
target: 'http://localhost:38080',
changeOrigin: true,
secure: false,
},
'/actionLogin.do': {
target: 'http://localhost:38080',
changeOrigin: true,
secure: false,
},
'/actionLogout.do': {
target: 'http://localhost:38080',
changeOrigin: true,
secure: false,
},
'/img': {
target: 'http://localhost:38080',
changeOrigin: true,
secure: false,
},
'/servers': {
target: 'http://localhost:38080',
changeOrigin: true,
secure: false,
}
}
},
optimizeDeps: {
include: ['@monaco-editor/react'],
},
build: {
rollupOptions: {
output: {
manualChunks: {
// Split Monaco Editor into a separate chunk
'monaco-editor': ['monaco-editor'],
},
},
},
},
})